#!/usr/bin/make -f

# Output every command that modifies files on the build system
export DH_VERBOSE = 1

# Enable hardening
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with python3

# Enable debug code
override_dh_auto_configure:
	dh_auto_configure -- --enable-debug --disable-static \
		$(if $(BUILD_ID),--with-release=".build-$(BUILD_ID)")

# Ignore if the testsuite fails
override_dh_auto_test:
	make check || true

# Run some custom commands after "make install"
override_dh_auto_install:
	dh_auto_install

	# Remove .la files
	find debian/tmp -name "*.la" -exec rm {} +
