1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/usr/bin/make -f
# test suite is known to fail on kfreebsd, hurd-i386, and hppa, don't fail build on that
TESTSUITE_FAIL_CMD=exit 1
ifneq ($(filter $(DEB_BUILD_ARCH), kfreebsd-amd64 kfreebsd-i386 hurd-i386 hppa),)
TESTSUITE_FAIL_CMD=exit 0
endif
# Enabling all hardening flags as MHD handles untrusted data
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
dh ${@}
override_dh_auto_install:
dh_auto_install
# Removing useless files
rm -f debian/tmp/usr/lib/*/*.la
override_dh_auto_test:
dh_auto_test || $(TESTSUITE_FAIL_CMD)
|