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 | |
Holger Hans Peter Freyther | 050d60a | 2015-03-14 20:01:48 +0100 | [diff] [blame] | 7 | #export DH_VERBOSE=1 |
Holger Hans Peter Freyther | d65ccd5 | 2013-12-12 12:30:29 +0100 | [diff] [blame] | 8 | export DEB_BUILD_HARDENING=1 |
Eric Butler | 91ffa2b | 2012-08-14 18:07:48 -0700 | [diff] [blame] | 9 | |
| 10 | %: |
Holger Hans Peter Freyther | 050d60a | 2015-03-14 20:01:48 +0100 | [diff] [blame] | 11 | dh $@ --with autoreconf --fail-missing |
Eric Butler | d11a5c1 | 2012-08-14 20:56:26 -0700 | [diff] [blame] | 12 | |
Holger Hans Peter Freyther | cf5b08b | 2013-02-13 20:12:36 +0100 | [diff] [blame] | 13 | override_dh_strip: |
| 14 | dh_strip --dbg-package=libosmo-abis-dbg |
| 15 | |
Eric Butler | d11a5c1 | 2012-08-14 20:56:26 -0700 | [diff] [blame] | 16 | override_dh_autoreconf: |
| 17 | echo $(VERSION) > .tarball-version |
| 18 | dh_autoreconf |