#!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all include /usr/share/dpkg/default.mk %: dh $@ override_dh_auto_configure: # First build MPI version of Garli dh_auto_configure -- --with-ncl=/usr --enable-mpi dh_auto_build mkdir -p debian/mpi mv src/Garli debian/mpi/Garli-mpi make distclean # Now build single processor binary dh_auto_configure -- --with-ncl=/usr override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) cp -a tests tests.bak # get (mostly!) reproducible test results and avoid failures as described in bug #907905 find tests -name "*.conf" -exec sed -i~ 's/randseed *= *-1/randseed = 1/' \{\} \; dh_auto_test # restore original test dir rm -rf tests mv tests.bak tests endif