Mercurial > hg > Feedworm
comparison Makefile @ 253:8b1678851b54
merge the pyqt5 branch into the default branch
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Fri, 10 Nov 2017 01:45:36 +0100 |
parents | 39080a271bf3 |
children |
comparison
equal
deleted
inserted
replaced
250:f715378371ab | 253:8b1678851b54 |
---|---|
1 | 1 |
2 # find all .ui files and generate corresponding filenames ending in .py | 2 UI_FILES = $(wildcard *.ui) |
3 PY_FILES = $(patsubst %.ui, %.py, $(wildcard *.ui)) | 3 UI_PY_FILES = $(UI_FILES:%.ui=Ui_%.py) |
4 RC_FILES = $(patsubst %.qrc, %_rc.py, $(wildcard *.qrc)) | 4 RC_FILES = $(patsubst %.qrc, %_rc.py, $(wildcard *.qrc)) |
5 | 5 |
6 all: $(PY_FILES) $(RC_FILES) | 6 all: $(UI_PY_FILES) $(RC_FILES) |
7 | 7 |
8 %.py: %.ui | 8 Ui_%.py: %.ui |
9 pyuic4 -o Ui_$@ $< | 9 pyuic5 -o $@ $< |
10 | 10 |
11 %_rc.py: %.qrc | 11 %_rc.py: %.qrc |
12 pyrcc4 -o $@ $< | 12 pyrcc5 -o $@ $< |
13 | 13 |
14 .PHONY: clean | 14 .PHONY: clean |
15 clean: | 15 clean: |
16 rm $(PY_FILES) | 16 rm $(UI_PY_FILES) |
17 rm $(RC_FILES) | |
17 rm *.pyc | 18 rm *.pyc |