Harald Welte | e916809 | 2010-08-24 15:23:33 +0200 | [diff] [blame] | 1 | #!/usr/bin/make -f |
Harald Welte | e916809 | 2010-08-24 15:23:33 +0200 | [diff] [blame] | 2 | |
| 3 | # Uncomment this to turn on verbose mode. |
| 4 | #export DH_VERBOSE=1 |
| 5 | |
Harald Welte | 367baa3 | 2017-08-13 09:41:33 +0200 | [diff] [blame] | 6 | DEBIAN := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2) |
| 7 | DEBVERS := $(shell echo '$(DEBIAN)' | cut -d- -f1) |
| 8 | VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/[+-].*//' -e 's/~//g') |
| 9 | |
Harald Welte | e916809 | 2010-08-24 15:23:33 +0200 | [diff] [blame] | 10 | # This has to be exported to make some magic below work. |
Holger Hans Peter Freyther | 0576f3b | 2015-03-14 20:17:19 +0100 | [diff] [blame] | 11 | #export DH_OPTIONS |
Max | 7716860 | 2016-12-21 17:57:40 +0100 | [diff] [blame] | 12 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
Harald Welte | e916809 | 2010-08-24 15:23:33 +0200 | [diff] [blame] | 13 | |
Harald Welte | e916809 | 2010-08-24 15:23:33 +0200 | [diff] [blame] | 14 | %: |
Holger Hans Peter Freyther | 0576f3b | 2015-03-14 20:17:19 +0100 | [diff] [blame] | 15 | dh $@ --with autoreconf |
Holger Hans Peter Freyther | f97f58d | 2014-09-23 16:52:19 +0200 | [diff] [blame] | 16 | |
| 17 | override_dh_strip: |
| 18 | dh_strip --dbg-package=openggsn-dbg |
Harald Welte | 23eea1d | 2017-08-11 13:47:24 +0200 | [diff] [blame] | 19 | |
| 20 | override_dh_autoreconf: |
| 21 | echo $(VERSION) > .tarball-version |
| 22 | dh_autoreconf |