Holger Hans Peter Freyther | 97e48a3 | 2016-04-01 19:21:16 +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 | |
| 7 | #export DH_VERBOSE=1 |
Harald Welte | e64917a | 2017-10-29 11:43:14 +0100 | [diff] [blame] | 8 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
Holger Hans Peter Freyther | 97e48a3 | 2016-04-01 19:21:16 +0200 | [diff] [blame] | 9 | |
| 10 | |
| 11 | %: |
| 12 | dh $@ --with=systemd --with autoreconf --fail-missing |
| 13 | |
| 14 | override_dh_strip: |
| 15 | dh_strip --dbg-package=osmo-pcu-dbg |
| 16 | |
| 17 | override_dh_autoreconf: |
| 18 | echo $(VERSION) > .tarball-version |
| 19 | dh_autoreconf |
Harald Welte | 9dab1ba | 2017-10-29 11:39:26 +0100 | [diff] [blame] | 20 | |
| 21 | override_dh_clean: |
| 22 | dh_clean |
| 23 | $(RM) tests/package.m4 |
| 24 | $(RM) test/testsuite |
| 25 | |
| 26 | # Print test results in case of a failure |
| 27 | override_dh_auto_test: |
| 28 | dh_auto_test || (find . -name testsuite.log -exec cat {} \; ; false) |