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 with the Ubuntu toolchain to avoid issues
8 export DEB_LDFLAGS_MAINT_STRIP := -Wl,-Bsymbolic-functions
9
10 ifeq ($(DEB_HOST_ARCH_OS),linux)
11 SYSPROF=-Dsysprof=true
12 endif
13
14 %:
15 dh $@
16
17 override_dh_auto_configure:
18 dh_auto_configure -- \
19 -Dauto_features=enabled \
20 -Ddocumentation=$(if $(filter %-doc,$(shell dh_listpackages)),true,false) \
21 -Dinstall-tests=true \
22 $(SYSPROF)
23
24 override_dh_auto_test:
25 GTK_A11Y=none xvfb-run -a dh_auto_test -- --timeout-multiplier 3
26
27 # debhelper >= 13.4 makes all of /usr/libexec executable, which is not
28 # quite right for installed-tests
29 override_dh_fixperms:
30 dh_fixperms -Xusr/libexec/installed-tests
31 ifneq ($(filter %-tests,$(built_binaries)),)
32 chmod --recursive --changes a+rX,u+w,og-w debian/*-tests/usr/libexec/installed-tests
33 endif
34
35 # We only use dh_gnome to automatically run dh_translations in Ubuntu
36 override_dh_gnome: