summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-08-09 22:04:43 +0900
committerkali <kali@leap.se>2012-08-09 23:05:32 +0900
commit247a0aff2f75b012feede58cda3049d68f783208 (patch)
tree430e842867884b24aec05886c3b6bae84ed2151f /Makefile
parent63e7e66dc2e820186180f96e71fd0a0541b0bbcf (diff)
added packaging feature to Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3ddcb0a5..59343dfc 100644
--- a/Makefile
+++ b/Makefile
@@ -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)