1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
#! /usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs
export DPKG_GENSYMBOLS_CHECK_LEVEL = 4
# Needed for testsuite
export XDG_RUNTIME_DIR = $(CURDIR)/debian/tmp/tmp-xdgruntimedir
ifeq ($(DEB_BUILD_ARCH_OS),linux)
CONFFLAGS = -Dcontext_manager=linux
else
CONFFLAGS = -Dcontext_manager=system
endif
%:
dh $@
execute_before_dh_clean:
rm -f doc/version.xml
override_dh_auto_configure:
dh_auto_configure -- \
-Dgtk_doc=$(if $(filter %-doc,$(shell dh_listpackages)),true,false) \
$(CONFFLAGS)
# Make the tests non-fatal on hurd-* as multicast requires to explicitly
# setup a route
ifneq (,$(filter $(DEB_HOST_ARCH),hurd-amd64 hurd-i386))
override_dh_auto_test:
dh_auto_test || true
endif
override_dh_compress:
dh_compress -Xexamples
|