-
Notifications
You must be signed in to change notification settings - Fork 236
/
makefile
54 lines (37 loc) · 1006 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
UI := $(wildcard manuskript/ui/*.ui) $(wildcard manuskript/ui/*/*.ui) $(wildcard manuskript/ui/*/*/*.ui) $(wildcard manuskript/ui/*.qrc)
UIs= $(UI:.ui=.py) $(UI:.qrc=_rc.py)
TS := $(wildcard i18n/*.ts)
QMs= $(TS:.ts=.qm)
ui: $(UIs)
run: $(UIs)
# python3 manuskript/main.py
bin/manuskript
debug: $(UIs)
gdb --args python3 bin/manuskript
lineprof:
kernprof -l -v bin/manuskript
profile:
python3 -m cProfile -s 'cumtime' bin/manuskript | more
compile:
cd manuskript && python3 setup.py build_ext --inplace
callgraph:
cd manuskript; pycallgraph myoutput -- main.py
translation:
pylupdate5 -noobsolete i18n/manuskript.pro
linguist:
linguist i18n/manuskript_fr.ts
lrelease i18n/manuskript_fr.ts
i18n: $(QMs)
pyinstaller:
python3 /usr/local/bin/pyinstaller manuskript.spec
snappkg:
snapcraft snap
stats:
python3 libs/gh-release-stats.py olivierkes manuskript -d
%_rc.py : %.qrc
pyrcc5 "$<" -o "$@"
%.py : %.ui
# pyuic4 "$<" > "$@"
pyuic5 "$<" > "$@"
%.qm: %.ts
lrelease "$<"