Eric Butler | 91ffa2b | 2012-08-14 18:07:48 -0700 | [diff] [blame] | 1 | #!/usr/bin/make -f |
| 2 | |
Eric Butler | d11a5c1 | 2012-08-14 20:56:26 -0700 | [diff] [blame] | 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 | |
Max | 5f3871e | 2016-12-21 14:18:34 +0100 | [diff] [blame] | 7 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
Holger Hans Peter Freyther | 050d60a | 2015-03-14 20:01:48 +0100 | [diff] [blame] | 8 | #export DH_VERBOSE=1 |
Max | 5f3871e | 2016-12-21 14:18:34 +0100 | [diff] [blame] | 9 | |
Eric Butler | 91ffa2b | 2012-08-14 18:07:48 -0700 | [diff] [blame] | 10 | |
| 11 | %: |
Holger Hans Peter Freyther | 050d60a | 2015-03-14 20:01:48 +0100 | [diff] [blame] | 12 | dh $@ --with autoreconf --fail-missing |
Eric Butler | d11a5c1 | 2012-08-14 20:56:26 -0700 | [diff] [blame] | 13 | |
Holger Hans Peter Freyther | cf5b08b | 2013-02-13 20:12:36 +0100 | [diff] [blame] | 14 | override_dh_strip: |
| 15 | dh_strip --dbg-package=libosmo-abis-dbg |
| 16 | |
Max | 5f3871e | 2016-12-21 14:18:34 +0100 | [diff] [blame] | 17 | override_dh_clean: |
| 18 | dh_clean |
Harald Welte | a60f5e1 | 2018-08-06 11:10:29 +0200 | [diff] [blame] | 19 | rm -f tests/package.m4 tests/testsuite .version |
Alexander Couzens | 4200aa6 | 2017-10-11 07:05:46 +0200 | [diff] [blame] | 20 | |
| 21 | override_dh_auto_test: |
| 22 | dh_auto_test || (find . -name testsuite.log -exec cat {} \; ; false) |