manuskript/makefile

30 lines
470 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)
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
2015-06-04 04:40:19 +12:00
# pyuic4 "$<" > "$@"
pyuic5 "$<" > "$@"
2015-05-28 13:32:09 +12:00