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