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: |
Harald Welte | 6c10aa0 | 2017-10-28 18:56:16 +0200 | [diff] [blame] | 18 | dh_strip -posmo-ggsn --dbg-package=osmo-ggsn-dbg |
Pau Espin Pedrol | 36c4fac | 2018-05-04 11:22:04 +0200 | [diff] [blame] | 19 | dh_strip -plibgtp3 --dbg-package=libgtp-dbg |