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 # Ubuntu doesn't build pandoc for i386
8 GTK4_ARCHES := amd64 arm64 armhf ppc64el loong64 riscv64 s390x alpha hppa hurd-amd64 hurd-i386 powerpc ppc64 sparc64
9
10 ifeq (,$(filter $(DEB_HOST_ARCH),$(GTK4_ARCHES)))
11 ENABLE_SNIFFER = -Dsniffer=false -Dmanpages=false
12 endif
13
14 %:
15 dh $@
16
17 override_dh_auto_configure:
18 dh_auto_configure -- \
19 $(ENABLE_SNIFFER) \
20 -Dgtk_doc=$(if $(filter %-doc,$(shell dh_listpackages)),true,false)
21
22 # Make the tests non-fatal on hurd as multicast requires to explicitly
23 # setup a route
24 ifneq (,$(filter $(DEB_HOST_ARCH),hurd-amd64 hurd-i386))
25 override_dh_auto_test:
26 dh_auto_test || true
27 endif