2010-10-16 16:41:24 -04:00
|
|
|
#!/usr/bin/make -f
|
2012-09-28 15:57:55 -04:00
|
|
|
|
2015-08-04 12:25:06 -04:00
|
|
|
export CABAL=debian/cabal-wrapper
|
2013-03-29 11:37:25 -04:00
|
|
|
|
2015-05-11 09:45:33 +01:00
|
|
|
STANDALONE_BUILD=$(shell grep -qe '^Package: git-annex-standalone' debian/control \
|
|
|
|
&& echo 1 || echo 0)
|
|
|
|
|
2013-04-10 16:53:04 -04:00
|
|
|
# Do use the changelog's version number, rather than making one up.
|
2013-05-10 18:52:35 -04:00
|
|
|
export RELEASE_BUILD=1
|
2013-04-10 16:53:04 -04:00
|
|
|
|
2010-10-16 16:41:24 -04:00
|
|
|
%:
|
|
|
|
dh $@
|
2015-04-20 11:29:32 -04:00
|
|
|
|
2015-05-11 09:45:33 +01:00
|
|
|
|
|
|
|
# Standalone build logic/helpers
|
|
|
|
ifeq ($(STANDALONE_BUILD),1)
|
|
|
|
|
|
|
|
override_dh_auto_build:
|
2015-11-10 12:53:46 -04:00
|
|
|
make linuxstandalone GIT_ANNEX_PACKAGE_INSTALL=1
|
2015-05-11 09:45:33 +01:00
|
|
|
|
|
|
|
override_dh_auto_install:
|
|
|
|
: # nothing to do, we just need to copy the beast, as instructed in debian/install
|
|
|
|
|
|
|
|
override_dh_fixperms:
|
|
|
|
dh_fixperms -Xld-linux
|
|
|
|
|
|
|
|
endif
|