Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # You must remove unused comment lines for the released package.
3 #export DH_VERBOSE = 1
4 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
5 #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
6 #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
7
8 %: before-build
9 dh $@ --buildsystem=autoconf
10
11 before-build:
12 dh_update_autotools_config
13
14 #override_dh_auto_configure:
15 # dh_auto_configure -- \
16 # -DCMAKE_LIBRARY_ARCHITECTURE="$(DEB_TARGET_MULTIARCH)"
17
18 override_dh_auto_test:
19 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
20 ifeq (32,$(DEB_HOST_ARCH_BITS))
21 sed -i '/tests-compress\|tests-transform\|tests-wire/d' tests/tests_units.list
22 endif
23 ifneq (,$(filter armhf s390x,$(DEB_HOST_ARCH)))
24 @echo "Skipping tests on $(DEB_HOST_ARCH) due to known failures"
25 else
26 dh_auto_test
27 endif
28 endif