Debian Codegraph @

debian/rules

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