including debian packaging commands in Makefile for ease of use
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 9 Mar 2010 07:16:47 +0000 (02:16 -0500)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 9 Mar 2010 07:16:47 +0000 (02:16 -0500)
Makefile

index f97701f410288fdc44e73606a2ae4911c7b72e97..e579757f38f2490da0f5b45e01be61a6972aaaf0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,7 @@
 # Licensed under GPL v3 or later
 
 VERSION=`dpkg-parsechangelog -lChangelog | grep ^Version: | cut -f2 -d\ `
+DEBIAN_VERSION=`dpkg-parsechangelog | grep ^Version: | cut -f2 -d\ `
 
 all: msva-perl.1
 
@@ -21,4 +22,10 @@ tarball: msva-perl msva.protocol.README COPYING Makefile
 clean: 
        rm -f msva-perl.1
 
-.PHONY: release tarball all clean
+debian-package:
+       debuild -uc -us -i'^\.git|notes_from_whiteboard\.txt'
+
+debian-tag:
+       git tag -s debian/$(DEBIAN_VERSION) -m "tagging msva-perl debian packaging version $(DEBIAN_VERSION)"
+
+.PHONY: release tarball debian-package debian-tag all clean