git-annex/debian/rules

45 lines
1.1 KiB
Text
Raw Normal View History

2010-10-16 20:41:24 +00:00
#!/usr/bin/make -f
export BUILDER=./Setup
# -j1 is used for reproducible build
export BUILDEROPTIONS=-j1
STANDALONE_BUILD=$(shell grep -qe '^Package: git-annex-standalone' debian/control \
&& echo 1 || echo 0)
# Do use the changelog's version number, rather than making one up.
2013-05-10 22:52:35 +00:00
export RELEASE_BUILD=1
export ZSH_COMPLETIONS_PATH=/usr/share/zsh/vendor-completions
2010-10-16 20:41:24 +00:00
%:
dh $@
# Standalone build logic/helpers
ifeq ($(STANDALONE_BUILD),1)
override_dh_auto_build:
make linuxstandalone GIT_ANNEX_PACKAGE_INSTALL=1
override_dh_auto_install:
make install-desktop install-docs install-completions \
DESTDIR=debian/git-annex-standalone
# bins are linked into place, as instructed in debian/install and debian/links
override_dh_fixperms:
dh_fixperms -Xld-linux
# gdb can't do much with a haskell program, so avoid the debug package
override_dh_strip:
dh_strip --no-ddebs
2015-11-16 21:06:30 +00: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)
override_dh_makeshlibs:
dh_makeshlibs --noscripts
endif