| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
|
| 5 |
SKIP_TESTS = $(shell cat debian/tests/pkg-perl/smoke-skip) |
| 6 |
TEST_FILES = $(filter-out $(SKIP_TESTS), $(wildcard t/*.t)) |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ |
| 10 |
|
| 11 |
# we want to use the system version of included modules, so |
| 12 |
# we move the inc away and move it back afterwards |
| 13 |
override_dh_auto_clean: |
| 14 |
dh_auto_clean |
| 15 |
[ ! -d $(CURDIR)/inc.save ] || mv $(CURDIR)/inc.save $(CURDIR)/inc |
| 16 |
|
| 17 |
override_dh_auto_configure: |
| 18 |
[ ! -d $(CURDIR)/inc ] || mv $(CURDIR)/inc $(CURDIR)/inc.save |
| 19 |
dh_auto_configure |
| 20 |
|
| 21 |
override_dh_auto_test: |
| 22 |
dh_auto_test -- TEST_FILES="$(TEST_FILES)" |