#!/usr/bin/make -f # You must remove unused comment lines for the released package. #export DH_VERBOSE = 1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed %: before-build dh $@ --buildsystem=autoconf before-build: dh_update_autotools_config #override_dh_auto_configure: # dh_auto_configure -- \ # -DCMAKE_LIBRARY_ARCHITECTURE="$(DEB_TARGET_MULTIARCH)" override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) ifeq (32,$(DEB_HOST_ARCH_BITS)) sed -i '/tests-compress\|tests-transform\|tests-wire/d' tests/tests_units.list endif ifneq (,$(filter armhf s390x,$(DEB_HOST_ARCH))) @echo "Skipping tests on $(DEB_HOST_ARCH) due to known failures" else dh_auto_test endif endif