debian: Update the rules to work from the toplevel directory

This commit is contained in:
Holger Hans Peter Freyther 2012-11-06 14:44:44 +01:00
parent e600eed7fa
commit f3a317ceed
4 changed files with 6 additions and 5 deletions

1
debian/autoreconf vendored Normal file
View File

@ -0,0 +1 @@
openbsc

View File

@ -1 +1 @@
doc/examples/osmo-bsc_mgcp
openbsc/doc/examples/osmo-bsc_mgcp

View File

@ -1 +1 @@
doc/examples/osmo-nitb
openbsc/doc/examples/osmo-nitb

6
debian/rules vendored
View File

@ -18,11 +18,11 @@ DEBVERS := $(shell echo '$(DEBIAN)' | cut -d- -f1)
VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/[+-].*//' -e 's/~//g')
%:
dh --with autoreconf $@
dh --sourcedirectory=openbsc --with autoreconf $@
override_dh_auto_configure:
echo $(VERSION) > .tarball-version
dh_auto_configure -- --enable-nat --enable-osmo-bsc
echo $(VERSION) > openbsc/.tarball-version
dh_auto_configure --sourcedirectory=openbsc -- --enable-nat --enable-osmo-bsc
override_dh_auto_test:
# tests are broken...