Mercurial > hg > Feedworm
annotate Makefile @ 251:3ce39af93e77 pyqt5
Update to PyQt5
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sun, 22 Oct 2017 03:40:44 +0200 |
parents | a34cb404cef3 |
children | 39080a271bf3 |
rev | line source |
---|---|
14 | 1 |
2 # find all .ui files and generate corresponding filenames ending in .py | |
3 PY_FILES = $(patsubst %.ui, %.py, $(wildcard *.ui)) | |
41
9fa1e33b67da
use Qt resources for window icons
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
14
diff
changeset
|
4 RC_FILES = $(patsubst %.qrc, %_rc.py, $(wildcard *.qrc)) |
14 | 5 |
41
9fa1e33b67da
use Qt resources for window icons
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
14
diff
changeset
|
6 all: $(PY_FILES) $(RC_FILES) |
14 | 7 |
8 %.py: %.ui | |
251 | 9 pyuic5 -o Ui_$@ $< |
14 | 10 |
41
9fa1e33b67da
use Qt resources for window icons
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
14
diff
changeset
|
11 %_rc.py: %.qrc |
251 | 12 pyrcc5 -o $@ $< |
41
9fa1e33b67da
use Qt resources for window icons
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
14
diff
changeset
|
13 |
14 | 14 .PHONY: clean |
15 clean: | |
251 | 16 #rm $(PY_FILES) |
14 | 17 rm *.pyc |