summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Yaroslav Halchenko <debian@onerussian.com>2015-05-11 09:45:33 +0100
committerGravatar Joey Hess <joeyh@joeyh.name>2015-05-11 11:50:59 -0400
commit5f9b1e8e0ab2a189b2d491503bb38931b5fdaad5 (patch)
tree3f2d57381ec0f1adfbab60b089180092cc374db2 /Makefile
parenta3f6cfb8c0958348c2799e4c84bdf3932b1738d7 (diff)
ENH: make debianstandalone{,-dsc} rules
Moved rules out of debian/rules and avoided need for patching it for standalone builds
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2bc43ed59..1a9468487 100644
--- a/Makefile
+++ b/Makefile
@@ -140,6 +140,25 @@ linuxstandalone-nobuild: Build/Standalone Build/LinuxMkLibs
cd tmp/git-annex.linux && find . -type l >> git-annex.MANIFEST
cd tmp && tar czf git-annex-standalone-$(shell dpkg --print-architecture).tar.gz git-annex.linux
+# Run this target to build git-annex-standalone*.deb
+debianstandalone: dpkg-buildpackage-F
+# Run this target to build git-annex-standalone*.dsc
+debianstandalone-dsc: dpkg-buildpackage-S
+
+prep-standalone:
+ $(MAKE) undo-standalone
+ QUILT_PATCHES=debian/patches QUILT_SERIES=series.standalone-build quilt push -a
+ debian/create-standalone-changelog
+
+undo-standalone:
+ test -e .git
+ git checkout debian/changelog
+ quilt pop -a || true
+
+dpkg-buildpackage%: prep-standalone
+ umask 022; dpkg-buildpackage -rfakeroot $*
+ $(MAKE) undo-standalone
+
OSXAPP_DEST=tmp/build-dmg/git-annex.app
OSXAPP_BASE=$(OSXAPP_DEST)/Contents/MacOS/bundle
osxapp: Build/Standalone Build/OSXMkLibs