2010-10-16 16:41:24 -04:00
|
|
|
#!/usr/bin/make -f
|
2012-09-28 15:57:55 -04:00
|
|
|
|
2018-08-03 22:46:49 -04:00
|
|
|
export BUILDER=./Setup
|
2013-03-29 11:37:25 -04:00
|
|
|
|
2016-02-05 13:56:27 -04:00
|
|
|
# -j1 is used for reproducible build
|
|
|
|
export BUILDEROPTIONS=-j1
|
|
|
|
|
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
|
|
|
|
2019-08-16 14:08:56 -04:00
|
|
|
export ZSH_COMPLETIONS_PATH=/usr/share/zsh/vendor-completions
|
|
|
|
|
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:
|
2019-08-16 13:47:48 -04:00
|
|
|
make install-desktop install-docs install-completions \
|
|
|
|
DESTDIR=debian/git-annex-standalone
|
2015-11-10 13:18:58 -04:00
|
|
|
# bins are linked into place, as instructed in debian/install and debian/links
|
2015-05-11 09:45:33 +01:00
|
|
|
|
|
|
|
override_dh_fixperms:
|
|
|
|
dh_fixperms -Xld-linux
|
|
|
|
|
2016-01-26 15:39:37 -04:00
|
|
|
# gdb can't do much with a haskell program, so avoid the debug package
|
|
|
|
override_dh_strip:
|
|
|
|
dh_strip --no-ddebs
|
|
|
|
|
2015-11-16 17:06:30 -04:00
|
|
|
# Do not add "ldconfig" trigger since all libraries in the standalone build
|
|
|
|
# are private copies and the trigger activate-noawait trigger may not work
|
|
|
|
# on elderly distributions (e.g. squeeze)
|
2015-11-16 10:40:54 -05:00
|
|
|
override_dh_makeshlibs:
|
|
|
|
dh_makeshlibs --noscripts
|
|
|
|
|
2015-05-11 09:45:33 +01:00
|
|
|
endif
|