diff Makefile @ 41:9fa1e33b67da

use Qt resources for window icons
author Dirk Olmes <dirk@xanthippe.ping.de>
date Fri, 14 May 2010 08:04:54 +0200
parents 42a225be7e56
children a34cb404cef3
line wrap: on
line diff
--- a/Makefile	Fri May 14 07:05:02 2010 +0200
+++ b/Makefile	Fri May 14 08:04:54 2010 +0200
@@ -1,12 +1,16 @@
 
 # find all .ui files and generate corresponding filenames ending in .py
 PY_FILES = $(patsubst %.ui, %.py, $(wildcard *.ui))
+RC_FILES = $(patsubst %.qrc, %_rc.py, $(wildcard *.qrc))
 
-all: $(PY_FILES)
+all: $(PY_FILES) $(RC_FILES)
 
 %.py: %.ui
 	pyuic4 -o $@ $<
 
+%_rc.py: %.qrc
+	pyrcc4 -o $@ $<
+
 .PHONY: clean
 clean:
 	rm $(PY_FILES)