Commit 1aa99a79 authored by Nelso Jost's avatar Nelso Jost

A

parent 333f5b1c
.PHONY: paigamu setup run clean firmware
.PHONY: paigamu setup run clean firmware freeze
all: setup run
all: help
help:
@ echo "Usage: make <target> where target can be"
@ echo ""
@ echo " setup install all dependencies"
@ echo " setup install all dependencies"
@ echo " firmware install joystick software on Arduino board"
@ echo " freeze create standalone executable"
@ echo " run execute the game"
setup:
@ python .depman.py || (wget --quiet -O .depman.py https://git.cta.if.ufrgs.br/ctautils/depman/raw/master/depman.py && python .depman.py)
@ python .depman.py --verbose || (wget --quiet -O .depman.py https://git.cta.if.ufrgs.br/ctautils/depman/raw/master/depman.py && python .depman.py)
run:
python3 main.py
......@@ -18,6 +19,12 @@ run:
firmware: setup
cd firmware && make
install-cxfreeze:
pip3 install https://bitbucket.org/anthony_tuininga/cx_freeze/get/default.zip
freeze:
python3 setup.py build
clean:
rm -rf paigamu
rm -rf paigamu build
cd firmware && rm -rf .scripts Makefile .build
......@@ -35,7 +35,7 @@
"name": "platformiowizard",
"check": "[ -f firmware/.scripts/platformio_wizard.py ]",
"install":
["cd firmware && python -c \"$(wget -O- https://git.cta.if.ufrgs.br/ctautils/platformiowizard/raw/master/get-platformiowizard.py)\""]
["cd firmware && python2 2-c \"$(wget -O- https://git.cta.if.ufrgs.br/ctautils/platformiowizard/raw/master/get-platformiowizard.py)\""]
}
]
}
from cx_Freeze import setup, Executable
import sys
setup(
name='Labirinto',
version = '0.0.1',
description = 'A PyQt Main Program',
options = {'build_exe':
{'includes': ['atexit', 're', 'importlib']}},
executables = [
Executable('main.py',
base='Win32GUI' if sys.platform=='win32' else None,
targetName='labirinto')
]
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment