manuskript/makefile

45 lines
751 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)
2015-06-08 22:01:45 +12:00
TS := $(wildcard i18n/*.ts)
QMs= $(TS:.ts=.qm)
2015-05-28 13:32:09 +12:00
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)
2015-06-15 22:18:42 +12:00
gdb --args python3 src/main.py
2015-05-28 13:32:09 +12:00
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-06-26 03:06:07 +12:00
callgraph:
2015-06-27 00:24:05 +12:00
cd src; pycallgraph myoutput -- main.py
2015-05-28 13:32:09 +12:00
2015-06-08 12:10:18 +12:00
translation:
2015-06-19 00:38:26 +12:00
pylupdate5 -noobsolete i18n/manuskript.pro
2015-06-08 12:10:18 +12:00
linguist:
2016-02-06 00:09:25 +13:00
linguist i18n/manuskript_fr.ts
lrelease i18n/manuskript_fr.ts
2015-06-08 22:01:45 +12:00
i18n: $(QMs)
2015-06-08 12:10:18 +12:00
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-06-08 22:01:45 +12:00
%.qm: %.ts
lrelease "$<"
2015-05-28 13:32:09 +12:00