Harald Welte | 08d88dd | 2019-04-03 09:09:49 +0200 | [diff] [blame] | 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | DEBIAN := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2) |
| 4 | DEBVERS := $(shell echo '$(DEBIAN)' | cut -d- -f1) |
| 5 | VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/[+-].*//' -e 's/~//g') |
| 6 | |
Harald Welte | 1b0a68a | 2020-03-04 15:35:18 +0000 | [diff] [blame] | 7 | USBDROPDIR := $(shell pkg-config --variable=usbdropdir libpcsclite) |
| 8 | |
Harald Welte | 08d88dd | 2019-04-03 09:09:49 +0200 | [diff] [blame] | 9 | #export DH_VERBOSE=1 |
| 10 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 11 | |
| 12 | |
| 13 | %: |
| 14 | dh $@ --with=systemd --with autoreconf --fail-missing |
| 15 | |
| 16 | override_dh_auto_configure: |
Harald Welte | 1b0a68a | 2020-03-04 15:35:18 +0000 | [diff] [blame] | 17 | dh_auto_configure -- --with-systemdsystemunitdir=/lib/systemd/system \ |
Harald Welte | 1b0a68a | 2020-03-04 15:35:18 +0000 | [diff] [blame] | 18 | --enable-manuals |
Harald Welte | 08d88dd | 2019-04-03 09:09:49 +0200 | [diff] [blame] | 19 | |
| 20 | #override_dh_clean: |
| 21 | # dh_clean |
| 22 | # $(RM) tests/package.m4 |
| 23 | # $(RM) tests/testsuite |
| 24 | |
| 25 | # Print test results in case of a failure |
| 26 | #override_dh_auto_test: |
| 27 | # dh_auto_test || (find . -name testsuite.log -exec cat {} \; ; false) |