#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DH_ALWAYS_EXCLUDE=.la:/pypff.a
export SKIP_PYTHON_TESTS=1

%:
	dh $@ --with python3 --buildsystem=autoconf

override_dh_auto_configure:
	dh_auto_configure -- --enable-python

# Upstream's tests recompile some files in a different environment
# resulting in another linker run during the install phase producing
# deviating binaries for builds run with tests and without.
# Executing dh_auto_test after dh_install inhibits reproducibility failures
# visible only at https://tests.reproducible-builds.org

override_dh_auto_test:

execute_after_dh_install:
	dh_auto_test
