#!/usr/bin/make -f %: dh $@ # exclude tests that require an RFID device or are not complete SKIP_TESTS = $(shell cat debian/tests/pkg-perl/smoke-skip) TEST_FILES = $(filter-out $(SKIP_TESTS), $(wildcard t/*.t)) override_dh_auto_test: dh_auto_test -- TEST_FILES="$(TEST_FILES)" # the upstream tarball ships a Makefile which breaks `make clean' override_dh_auto_clean: # recreate Makefile but only if Makefile and Makefile.PL exist [ ! -f $(CURDIR)/Makefile ] || [ ! -f $(CURDIR)/Makefile.PL ] || perl -I. Makefile.PL # calls $(MAKE) distclean, which rm's Makefile and Makefile.old dh_auto_clean