manuskript/makefile
Olivier Keshavjee cfa6c72328 Stuff and all
2015-06-15 12:18:42 +02:00

41 lines
664 B
Makefile

UI := $(wildcard src/ui/*.ui) $(wildcard src/ui/*/*.ui) $(wildcard src/ui/*.qrc)
UIs= $(UI:.ui=.py) $(UI:.qrc=_rc.py)
TS := $(wildcard i18n/*.ts)
QMs= $(TS:.ts=.qm)
ui: $(UIs)
run: $(UIs)
python3 src/main.py
debug: $(UIs)
gdb --args python3 src/main.py
lineprof:
kernprof -l -v src/main.py
profile:
python3 -m cProfile -s 'cumtime' src/main.py | more
compile:
cd src && python3 setup.py build_ext --inplace
translation:
pylupdate5 -noobsolete i18n/snowflaQe.pro
linguist:
linguist i18n/snowflaQe_fr.ts
i18n: $(QMs)
%_rc.py : %.qrc
pyrcc5 "$<" -o "$@"
%.py : %.ui
# pyuic4 "$<" > "$@"
pyuic5 "$<" > "$@"
%.qm: %.ts
lrelease "$<"