git-annex/debian/rules
Yaroslav Halchenko c60afa0891
BF: standalone debian package -- dh_makeshlibs --noscripts
To avoid creation of unnecessary trigger calling out to ldconfig
via activate-noawait which is not present on older releases (e.g. squeeze)
2015-11-16 17:05:30 -04:00

33 lines
840 B
Makefile
Executable file

#!/usr/bin/make -f
export CABAL=debian/cabal-wrapper
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.
export RELEASE_BUILD=1
%:
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-misc install-docs 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
# 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
endif