mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
I have verified, that the resulting debian packages build in my own OBS namespace (see the -doc packages): https://download.opensuse.org/repositories/home:/osmith42/Debian_9.0/all/ https://build.opensuse.org/project/show/home:osmith42 Depends: Ib7251cca9116151e473798879375cd5eb48ff3ad (osmo-ci) Related: OS#3899 Change-Id: I8466713a8d414ea56ca24f6f7119338ad2b98ce5
40 lines
1.3 KiB
Makefile
Executable File
40 lines
1.3 KiB
Makefile
Executable File
#!/usr/bin/make -f
|
|
# You must remove unused comment lines for the released package.
|
|
# See debhelper(7) (uncomment to enable)
|
|
# This is an autogenerated template for debian/rules.
|
|
#
|
|
# Output every command that modifies files on the build system.
|
|
#export DH_VERBOSE = 1
|
|
|
|
DEBIAN := $(shell dpkg-parsechangelog | grep '^Version:' | cut -d' ' -f2)
|
|
DEBVERS := $(shell echo '$(DEBIAN)' | cut -d- -f1)
|
|
VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/[+-].*//' -e 's/~//g')
|
|
|
|
CFLAGS += -g
|
|
|
|
# main packaging script based on dh7 syntax
|
|
%:
|
|
dh $@ --with autoreconf
|
|
|
|
# debmake generated override targets
|
|
# Set options for ./configure
|
|
#CONFIGURE_FLAGS = <options for ./configure>
|
|
#overrride_dh_configure:
|
|
# dh_configure -- $(CONFIGURE_FLAGS)
|
|
#
|
|
# Do not install libtool archive, python .pyc .pyo
|
|
#override_dh_install:
|
|
# dh_install --list-missing -X.la -X.pyc -X.pyo
|
|
|
|
override_dh_auto_test:
|
|
dh_auto_test || (find . -name testsuite.log -exec cat {} \; ; false)
|
|
|
|
override_dh_auto_configure:
|
|
dh_auto_configure -- --with-systemdsystemunitdir=/lib/systemd/system --enable-manuals
|
|
|
|
# Don't create .pdf.gz files (barely saves space and they can't be opened directly by most pdf readers)
|
|
override_dh_compress:
|
|
dh_compress -X.pdf
|
|
|
|
# See https://www.debian.org/doc/manuals/developers-reference/best-pkging-practices.html#bpp-dbg
|