Mercurial > hg > Feedworm
comparison 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 |
comparison
equal
deleted
inserted
replaced
40:c858aab71e5b | 41:9fa1e33b67da |
---|---|
1 | 1 |
2 # find all .ui files and generate corresponding filenames ending in .py | 2 # find all .ui files and generate corresponding filenames ending in .py |
3 PY_FILES = $(patsubst %.ui, %.py, $(wildcard *.ui)) | 3 PY_FILES = $(patsubst %.ui, %.py, $(wildcard *.ui)) |
4 RC_FILES = $(patsubst %.qrc, %_rc.py, $(wildcard *.qrc)) | |
4 | 5 |
5 all: $(PY_FILES) | 6 all: $(PY_FILES) $(RC_FILES) |
6 | 7 |
7 %.py: %.ui | 8 %.py: %.ui |
8 pyuic4 -o $@ $< | 9 pyuic4 -o $@ $< |
10 | |
11 %_rc.py: %.qrc | |
12 pyrcc4 -o $@ $< | |
9 | 13 |
10 .PHONY: clean | 14 .PHONY: clean |
11 clean: | 15 clean: |
12 rm $(PY_FILES) | 16 rm $(PY_FILES) |
13 rm *.pyc | 17 rm *.pyc |