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 |
| 8 | export DEB_BUILD_HARDENING=1 |
| 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 |