manuskript/makefile

55 lines
1006 B
Makefile
Raw Permalink Normal View History

UI := $(wildcard manuskript/ui/*.ui) $(wildcard manuskript/ui/*/*.ui) $(wildcard manuskript/ui/*/*/*.ui) $(wildcard manuskript/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)
2016-02-07 00:34:22 +13:00
# python3 manuskript/main.py
bin/manuskript
2015-05-28 13:32:09 +12:00
debug: $(UIs)
2016-03-06 06:20:39 +13:00
gdb --args python3 bin/manuskript
2015-05-28 13:32:09 +12:00
lineprof:
kernprof -l -v bin/manuskript
2015-05-28 13:32:09 +12:00
profile:
2016-04-01 02:58:13 +13:00
python3 -m cProfile -s 'cumtime' bin/manuskript | more
2015-05-28 13:32:09 +12:00
compile:
2016-02-07 00:34:22 +13:00
cd manuskript && python3 setup.py build_ext --inplace
2015-06-26 03:06:07 +12:00
callgraph:
2016-02-07 00:34:22 +13:00
cd manuskript; 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)
2016-02-29 11:48:53 +13:00
pyinstaller:
python3 /usr/local/bin/pyinstaller manuskript.spec
snappkg:
snapcraft snap
stats:
python3 libs/gh-release-stats.py olivierkes manuskript -d
2015-05-28 13:32:09 +12:00
%_rc.py : %.qrc
pyrcc5 "$<" -o "$@"
2015-05-28 13:32:09 +12:00
%.py : %.ui
# pyuic4 "$<" > "$@"
pyuic5 "$<" > "$@"
2015-06-08 22:01:45 +12:00
%.qm: %.ts
lrelease "$<"
2015-05-28 13:32:09 +12:00