From c46d8da153ac658c8bd145376e22b1218db1090a Mon Sep 17 00:00:00 2001 From: kali Date: Sun, 22 Jul 2012 21:10:15 -0700 Subject: initial import --- Makefile | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..8f50f561 --- /dev/null +++ b/Makefile @@ -0,0 +1,41 @@ +# ################################ +# Makefile for compiling resources +# files. +###### EDIT ###################### +#Directory with ui and resource files +RESOURCE_DIR = data/resources + +#Directory for compiled resources +COMPILED_DIR = src/leap/gui + +#UI files to compile +# UI_FILES = foo.ui +UI_FILES = +#Qt resource files to compile +#images.qrc +RESOURCES = mainwindow.qrc + +#pyuic4 and pyrcc4 binaries +PYUIC = pyuic4 +PYRCC = pyrcc4 + +################################# +# DO NOT EDIT FOLLOWING + +COMPILED_UI = $(UI_FILES:%.ui=$(COMPILED_DIR)/ui_%.py) +COMPILED_RESOURCES = $(RESOURCES:%.qrc=$(COMPILED_DIR)/%_rc.py) + +all : resources ui + +resources : $(COMPILED_RESOURCES) + +ui : $(COMPILED_UI) + +$(COMPILED_DIR)/ui_%.py : $(RESOURCE_DIR)/%.ui + $(PYUIC) $< -o $@ + +$(COMPILED_DIR)/%_rc.py : $(RESOURCE_DIR)/%.qrc + $(PYRCC) $< -o $@ + +clean : + $(RM) $(COMPILED_UI) $(COMPILED_RESOURCES) $(COMPILED_UI:.py=.pyc) $(COMPILED_RESOURCES:.py=.pyc) -- cgit v1.2.3