added Makefile
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 9 Mar 2010 04:47:41 +0000 (23:47 -0500)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 9 Mar 2010 04:47:41 +0000 (23:47 -0500)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..3de8e7a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+#!/usr/bin/make -f
+
+# Makefile for xul-ext-monkeysphere
+
+# © 2010 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
+# Licensed under GPL v3 or later
+
+VERSION=`dpkg-parsechangelog -lChangelog | grep ^Version: | cut -f2 -d\ `
+
+../msva-perl_$(VERSION).orig.tar.gz: msva-perl msva.protocol.README COPYING
+       git archive --format tar -o $@ --prefix=msva-perl-$(VERSION)/ $<
+
+tarball: ../msva-perl_$(VERSION).orig.tar.gz
+
+debian-package: tarball
+       git buildpackage -uc -us
+
+.PHONY: tarball debian-package