manuskript/makefile

36 lines
573 B
Makefile
Raw Normal View History

UI := $(wildcard src/ui/*.ui) $(wildcard src/ui/*/*.ui) $(wildcard src/ui/*.qrc)
2015-05-28 13:32:09 +12:00
UIs= $(UI:.ui=.py) $(UI:.qrc=_rc.py)
ui: $(UIs)
run: $(UIs)
2015-06-08 08:06:57 +12:00
python3 src/main.py
2015-05-28 13:32:09 +12:00
debug: $(UIs)
gdb --args python src/main.py
lineprof:
kernprof -l -v src/main.py
profile:
2015-06-08 08:06:57 +12:00
python3 -m cProfile -s 'cumtime' src/main.py | more
2015-05-28 13:32:09 +12:00
compile:
2015-06-08 08:06:57 +12:00
cd src && python3 setup.py build_ext --inplace
2015-05-28 13:32:09 +12:00
2015-06-08 12:10:18 +12:00
translation:
pylupdate5 languages/snowflaQe.pro
linguist:
linguist languages/snowflaQe_fr.ts
2015-05-28 13:32:09 +12:00
%_rc.py : %.qrc
2015-06-08 08:06:57 +12:00
pyrcc5 "$<" -o "$@"
2015-05-28 13:32:09 +12:00
%.py : %.ui
2015-06-04 04:40:19 +12:00
# pyuic4 "$<" > "$@"
pyuic5 "$<" > "$@"
2015-05-28 13:32:09 +12:00