blob: 1ab559411ee9fcc141627e5c7c8c4c8b880696d7 [file] [log] [blame]
Harald Welte640d72a2010-08-24 15:33:04 +02001#!/usr/bin/make -f
Harald Welte640d72a2010-08-24 15:33:04 +02002
3# Uncomment this to turn on verbose mode.
4#export DH_VERBOSE=1
5
Eric Butler010c9552012-08-14 21:01:20 -07006DEBIAN := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2)
7DEBVERS := $(shell echo '$(DEBIAN)' | cut -d- -f1)
8VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/[+-].*//' -e 's/~//g')
9
Max5fa8b082016-12-19 18:41:42 +010010export DEB_BUILD_MAINT_OPTIONS = hardening=+all
Holger Hans Peter Freyther12355ae2013-12-12 12:50:18 +010011
Harald Welte640d72a2010-08-24 15:33:04 +020012%:
Max5fa8b082016-12-19 18:41:42 +010013 dh $@ --sourcedirectory=openbsc --with autoreconf
Eric Butlera73ca052012-08-14 17:40:58 -070014
Holger Hans Peter Freyther93fda872012-11-06 19:26:50 +010015# This is needed for debian stable (squeeze)
16override_dh_autoreconf:
17 cd openbsc && autoreconf --install --force
18
Holger Hans Peter Freyther65f74272013-12-12 13:07:47 +010019override_dh_strip:
Holger Hans Peter Freyther65f74272013-12-12 13:07:47 +010020 dh_strip -posmocom-nitb --dbg-package=osmocom-nitb-dbg
Ivan Kluchnikovc6e735f2015-05-29 13:07:08 -040021 dh_strip -posmocom-meas-utils --dbg-package=osmocom-meas-utils-dbg
Kirill Zakharenko800369d2015-10-27 19:32:50 +030022 dh_strip -posmocom-proxy --dbg-package=osmocom-proxy-dbg
Holger Hans Peter Freyther65f74272013-12-12 13:07:47 +010023
Eric Butlera73ca052012-08-14 17:40:58 -070024override_dh_auto_configure:
Holger Hans Peter Freytherf3a317c2012-11-06 14:44:44 +010025 echo $(VERSION) > openbsc/.tarball-version
Ivan Kluchnikovcc75a7f2015-05-27 16:15:37 +030026 dh_auto_configure --sourcedirectory=openbsc -- --enable-smpp