diff options
author | kali <kali@leap.se> | 2012-08-09 22:04:43 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-08-09 23:05:32 +0900 |
commit | 247a0aff2f75b012feede58cda3049d68f783208 (patch) | |
tree | 430e842867884b24aec05886c3b6bae84ed2151f | |
parent | 63e7e66dc2e820186180f96e71fd0a0541b0bbcf (diff) |
added packaging feature to Makefile
-rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -27,6 +27,10 @@ PYRCC = pyrcc4 COMPILED_UI = $(UI_FILES:%.ui=$(COMPILED_DIR)/ui_%.py) COMPILED_RESOURCES = $(RESOURCES:%.qrc=$(COMPILED_DIR)/%_rc.py) + +DEBVER = $(shell dpkg-parsechangelog | sed -ne 's,Version: ,,p') + +# all : resources ui @@ -39,6 +43,10 @@ $(COMPILED_DIR)/ui_%.py : $(RESOURCE_DIR)/%.ui $(COMPILED_DIR)/%_rc.py : $(RESOURCE_DIR)/%.qrc $(PYRCC) $< -o $@ - + +deb: + @git tag -a debian/$(DEBVER) -m "..." + @debuild -us -uc -i.git + clean : $(RM) $(COMPILED_UI) $(COMPILED_RESOURCES) $(COMPILED_UI:.py=.pyc) $(COMPILED_RESOURCES:.py=.pyc) |