From: Jameson Rollins <jrollins@finestructure.net>
Date: Tue, 23 Mar 2010 06:42:13 +0000 (-0400)
Subject: change makefile to use git-buildpackage for debian packaging
X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=34ee2c761045becff8f78a64e70aff3e6ade2617;p=monkeysphere.git

change makefile to use git-buildpackage for debian packaging
---

diff --git a/Makefile b/Makefile
index 08880a1..f52c82c 100755
--- a/Makefile
+++ b/Makefile
@@ -26,11 +26,8 @@ tarball: clean
 	tar -ch --exclude='*~' monkeysphere-$(MONKEYSPHERE_VERSION) | gzip -n > monkeysphere_$(MONKEYSPHERE_VERSION).orig.tar.gz
 	rm -rf monkeysphere-$(MONKEYSPHERE_VERSION)
 
-debian-package: tarball
-	tar xzf monkeysphere_$(MONKEYSPHERE_VERSION).orig.tar.gz
-	cp -a packaging/debian monkeysphere-$(MONKEYSPHERE_VERSION)
-	(cd monkeysphere-$(MONKEYSPHERE_VERSION) && debuild -uc -us)
-	rm -rf monkeysphere-$(MONKEYSPHERE_VERSION)
+debian-package:
+	git buildpackage -uc -us --git-upstream-branch=master --git-debian-branch=debian --git-no-pristine-tar --git-ignore-new
 
 # don't explicitly depend on the tarball, since our tarball
 # (re)generation is not idempotent even when no source changes.