#!/usr/bin/make -f DPKG_EXPORT_BUILDFLAGS = 1 DEB_BUILD_MAINT_OPTIONS = hardening=+all include /usr/share/dpkg/default.mk PACKAGE = $(shell dh_listpackages) TMP = $(CURDIR)/debian/$(PACKAGE) %: dh $@ override_dh_auto_build: for f in lib/iconv_open*.gperf; do \ gperf $$f > `echo $$f | sed 's/gperf/h/'`; \ done # Ignore a few tests on !x86 32bit. This addresses bug #982869 to make # it non-RC but upstream needs to clarify the issue. ifeq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH), armel armhf mipsel hppa powerpc)) override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) sed -i~ -e '/^ # Conversion Errors/,/# on a different architecture, would printf(%Lg) print something else?/d' tests/decorate-errors.pl dh_auto_test mv tests/decorate-errors.pl~ tests/decorate-errors.pl endif endif override_dh_auto_clean: override_dh_fixperms: dh_fixperms rm -rf $(TMP)/usr/share/datamash