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