Mercurial > hg > Feedworm
comparison Makefile @ 252:39080a271bf3 pyqt5
fix the makefile
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sun, 05 Nov 2017 02:49:14 +0100 |
parents | 3ce39af93e77 |
children |
comparison
equal
deleted
inserted
replaced
251:3ce39af93e77 | 252:39080a271bf3 |
---|---|
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 pyuic5 -o Ui_$@ $< | 9 pyuic5 -o $@ $< |
10 | 10 |
11 %_rc.py: %.qrc | 11 %_rc.py: %.qrc |
12 pyrcc5 -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 |