#!/usr/bin/make -f

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)

%:
	dh $@

execute_after_dh_auto_test:
	rm -f $(CURDIR)/t/samples/animals/*.csv

override_dh_auto_install:
	# If we ran the tests, we adjusted the mtimes of these dirs, so always
	# force them to a fixed time for reproducibility
	find $(CURDIR)/t/samples/ -type d -print0 | xargs -0r touch -d@$(SOURCE_DATE_EPOCH)
	dh_auto_install
	$(RM) -rv $(TMP)/usr/share/perl5/Test
	$(RM) -v  $(TMP)/usr/share/perl5/profile.pl
