2010-10-16 20:41:24 +00:00
|
|
|
#!/usr/bin/make -f
|
2012-09-28 19:57:55 +00:00
|
|
|
|
2015-08-04 16:25:06 +00:00
|
|
|
export CABAL=debian/cabal-wrapper
|
2013-03-29 15:37:25 +00:00
|
|
|
|
2015-05-11 08:45:33 +00:00
|
|
|
STANDALONE_BUILD=$(shell grep -qe '^Package: git-annex-standalone' debian/control \
|
|
|
|
&& echo 1 || echo 0)
|
|
|
|
|
2013-04-10 20:53:04 +00:00
|
|
|
# Do use the changelog's version number, rather than making one up.
|
2013-05-10 22:52:35 +00:00
|
|
|
export RELEASE_BUILD=1
|
2013-04-10 20:53:04 +00:00
|
|
|
|
2010-10-16 20:41:24 +00:00
|
|
|
%:
|
|
|
|
dh $@
|
2015-04-20 15:29:32 +00:00
|
|
|
|
2015-05-11 08:45:33 +00:00
|
|
|
|
|
|
|
# Standalone build logic/helpers
|
|
|
|
ifeq ($(STANDALONE_BUILD),1)
|
|
|
|
|
|
|
|
override_dh_auto_build:
|
2015-11-10 16:53:46 +00:00
|
|
|
make linuxstandalone GIT_ANNEX_PACKAGE_INSTALL=1
|
2015-05-11 08:45:33 +00:00
|
|
|
|
|
|
|
override_dh_auto_install:
|
2015-11-10 17:18:58 +00:00
|
|
|
make install-misc install-docs DESTDIR=debian/git-annex-standalone
|
|
|
|
# bins are linked into place, as instructed in debian/install and debian/links
|
2015-05-11 08:45:33 +00:00
|
|
|
|
|
|
|
override_dh_fixperms:
|
|
|
|
dh_fixperms -Xld-linux
|
|
|
|
|
2015-11-16 15:40:54 +00:00
|
|
|
# Do not add "ldconfig" trigger since of no need, and activate-noawait might not
|
|
|
|
# be known to elderly distributions (e.g. squeeze)
|
|
|
|
override_dh_makeshlibs:
|
|
|
|
dh_makeshlibs --noscripts
|
|
|
|
|
2015-05-11 08:45:33 +00:00
|
|
|
endif
|