mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-20 21:02:23 +12:00
28 lines
418 B
Makefile
28 lines
418 B
Makefile
|
UI := $(wildcard src/ui/*.ui) $(wildcard src/ui/*.qrc)
|
||
|
UIs= $(UI:.ui=.py) $(UI:.qrc=_rc.py)
|
||
|
|
||
|
|
||
|
ui: $(UIs)
|
||
|
|
||
|
run: $(UIs)
|
||
|
python src/main.py
|
||
|
|
||
|
debug: $(UIs)
|
||
|
gdb --args python src/main.py
|
||
|
|
||
|
lineprof:
|
||
|
kernprof -l -v src/main.py
|
||
|
|
||
|
profile:
|
||
|
python -m cProfile -s 'cumtime' src/main.py | more
|
||
|
|
||
|
compile:
|
||
|
cd src && python setup.py build_ext --inplace
|
||
|
|
||
|
%_rc.py : %.qrc
|
||
|
pyrcc4 "$<" -o "$@"
|
||
|
|
||
|
%.py : %.ui
|
||
|
pyuic4 "$<" > "$@"
|
||
|
|