File: makefile

package info (click to toggle)
manuskript 0.16.1-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 26,228 kB
  • sloc: javascript: 54,334; python: 25,835; sh: 253; xml: 174; makefile: 86
file content (54 lines) | stat: -rw-r--r-- 1,006 bytes parent folder | download | duplicates (3)
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
54
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 "$<"