qdsfit/Makefile

38 lines
840 B
Makefile
Raw Normal View History

2014-09-24 19:33:21 +00:00
# Anzahl an gleichzeitgen Prozessen
MAKEFLAGS+="-j 4"
###### EDIT #####################
#Directory with ui and resource files
2015-01-08 12:18:45 +00:00
RESOURCE_DIR = ui
2014-09-24 19:33:21 +00:00
#Directory for compiled resources
2015-01-08 12:18:45 +00:00
COMPILED_DIR = ui
2014-09-24 19:33:21 +00:00
#UI files to compile
UI_FILES = *.ui
#Qt resource files to compile
RESOURCES = images.qrc
#pyuic4 and pyrcc4 binaries
#################################
# DO NOT EDIT FOLLOWING
COMPILED_UI = $(UI_FILES:%.ui=$(COMPILED_DIR)/%.py)
COMPILED_RESOURCES = $(RESOURCES:%.qrc=$(COMPILED_DIR)/%_rc.py)
all : ui resources
resources : $(COMPILED_RESOURCES)
ui : $(COMPILED_UI)
$(COMPILED_DIR)/%.py : $(RESOURCE_DIR)/%.ui
pyuic4 $< -o $@
2015-01-08 12:18:45 +00:00
$(COMPILED_DIR)/$(RESOURCE_DIR)/%_rc.py : $(RESOURCE_DIR)/icons/%.qrc
2014-09-24 19:33:21 +00:00
pyrcc4 $< -o $@
clean :
rm $(COMPILED_UI) $(COMPILED_RESOURCES) $(COMPILED_UI:.py=.pyc) $(COMPILED_RESOURCES:.py=.pyc)