Makefile 788 Bytes
Newer Older
Nelso Jost's avatar
A  
Nelso Jost committed
1
.PHONY: paigamu setup run clean firmware freeze
2

Nelso Jost's avatar
A  
Nelso Jost committed
3
all: help
4 5 6 7

help:
	@ echo "Usage:  make <target>   where target can be"
	@ echo ""
Nelso Jost's avatar
A  
Nelso Jost committed
8
	@ echo "  setup           install all dependencies"		
9
	@ echo "  firmware        install joystick software on Arduino board"
Nelso Jost's avatar
A  
Nelso Jost committed
10
	@ echo "  freeze          create standalone executable"	
11 12
	@ echo "  run             execute the game"

13
setup:
Nelso Jost's avatar
A  
Nelso Jost committed
14
	@ python .depman.py --verbose || (wget --quiet -O .depman.py https://git.cta.if.ufrgs.br/ctautils/depman/raw/master/depman.py && python .depman.py)
15

16 17 18
run:
	python3 main.py

19
firmware: setup
20 21
	cd firmware && make

Nelso Jost's avatar
A  
Nelso Jost committed
22 23 24 25 26 27
install-cxfreeze:
	pip3 install https://bitbucket.org/anthony_tuininga/cx_freeze/get/default.zip 

freeze:
	python3 setup.py build

28
clean:
Nelso Jost's avatar
A  
Nelso Jost committed
29
	rm -rf paigamu build
30
	cd firmware && rm -rf .scripts Makefile .build