diff 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
line wrap: on
line diff
--- a/Makefile	Sat Oct 21 10:31:02 2017 +0200
+++ b/Makefile	Fri Nov 10 01:45:36 2017 +0100
@@ -1,17 +1,18 @@
 
-# find all .ui files and generate corresponding filenames ending in .py
-PY_FILES = $(patsubst %.ui, %.py, $(wildcard *.ui))
+UI_FILES = $(wildcard *.ui)
+UI_PY_FILES = $(UI_FILES:%.ui=Ui_%.py)
 RC_FILES = $(patsubst %.qrc, %_rc.py, $(wildcard *.qrc))
 
-all: $(PY_FILES) $(RC_FILES)
+all: $(UI_PY_FILES) $(RC_FILES)
 
-%.py: %.ui
-	pyuic4 -o Ui_$@ $<
+Ui_%.py: %.ui
+	pyuic5 -o $@ $<
 
 %_rc.py: %.qrc
-	pyrcc4 -o $@ $<
+	pyrcc5 -o $@ $<
 
 .PHONY: clean
 clean:
-	rm $(PY_FILES)
+	rm $(UI_PY_FILES)
+	rm $(RC_FILES)
 	rm *.pyc