Cleanup make system

This commit is contained in:
Kovid Goyal 2007-10-08 20:46:10 +00:00
parent 9c21a23ce8
commit 1c7571fed9
2 changed files with 10 additions and 1 deletions

7
Makefile Normal file
View File

@ -0,0 +1,7 @@
all : gui2
clean :
${MAKE} -C src/libprs500/gui2 clean
gui2 :
${MAKE} -C src/libprs500/gui2

View File

@ -3,8 +3,10 @@ UI = main_ui.py dialogs/metadata_single_ui.py dialogs/metadata_bulk_ui.py dialog
dialogs/password_ui.py lrf_renderer/main_ui.py lrf_renderer/config_ui.py
RC = images_rc.pyc
PYUIC = $(shell which pyuic4)
%_ui.py : %.ui
pyuic4 $< | sed "s/import images_rc/from libprs500.gui2 import images_rc/" | \
${PYUIC} $< | sed "s/import images_rc/from libprs500.gui2 import images_rc/" | \
sed "s/from library import/from libprs500.gui2.library import/"> $@
%_rc.pyc : %.qrc %