blob: d6f1fc2bfae153bbae66c24b5e34c54e51248221 [file] [log] [blame]
Harald Welte95f42062010-08-24 15:33:04 +02001#!/usr/bin/make -f
Alexander Couzensd040bab2017-08-07 09:48:18 +00002# You must remove unused comment lines for the released package.
3# See debhelper(7) (uncomment to enable)
4# This is an autogenerated template for debian/rules.
5#
6# Output every command that modifies files on the build system.
7#export DH_VERBOSE = 1
8#
9# Copy some variable definitions from pkg-info.mk and vendor.mk
10# under /usr/share/dpkg/ to here if they are useful.
11#
12# See FEATURE AREAS/ENVIRONMENT in dpkg-buildflags(1)
13# Apply all hardening options
14#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
15# Package maintainers to append CFLAGS
16#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
17# Package maintainers to append LDFLAGS
18#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
19#
20# With debhelper version 9 or newer, the dh command exports
21# all buildflags. So there is no need to include the
22# /usr/share/dpkg/buildflags.mk file here if compat is 9 or newer.
23#
24# These are rarely used code. (START)
25#
26# The following include for *.mk magically sets miscellaneous
27# variables while honoring existing values of pertinent
28# environment variables:
29#
30# Architecture-related variables such as DEB_TARGET_MULTIARCH:
31#include /usr/share/dpkg/architecture.mk
32# Vendor-related variables such as DEB_VENDOR:
33#include /usr/share/dpkg/vendor.mk
34# Package-related variables such as DEB_DISTRIBUTION
35#include /usr/share/dpkg/pkg-info.mk
36#
37# You may alternatively set them susing a simple script such as:
38# DEB_VENDOR ?= $(shell dpkg-vendor --query Vendor)
39#
40# These are rarely used code. (END)
41#
Harald Welte95f42062010-08-24 15:33:04 +020042
Alexander Couzensd040bab2017-08-07 09:48:18 +000043# main packaging script based on dh7 syntax
Harald Welte95f42062010-08-24 15:33:04 +020044%:
Alexander Couzensd040bab2017-08-07 09:48:18 +000045 dh $@ --with autoreconf
Eric Butler37074482012-08-14 17:40:58 -070046
Alexander Couzensd040bab2017-08-07 09:48:18 +000047# debmake generated override targets
48# Set options for ./configure
Oliver Smith29532c22021-01-29 11:13:00 +010049CONFIGURE_FLAGS += --with-systemdsystemunitdir=/lib/systemd/system --enable-manuals
Pau Espin Pedrole3f18e42018-09-13 11:48:44 +020050override_dh_auto_configure:
Alexander Couzensd040bab2017-08-07 09:48:18 +000051 dh_auto_configure -- $(CONFIGURE_FLAGS)
52#
53# Do not install libtool archive, python .pyc .pyo
54#override_dh_install:
55# dh_install --list-missing -X.la -X.pyc -X.pyo
Holger Hans Peter Freytherd7b97d42012-11-06 19:26:50 +010056
Alexander Couzensd040bab2017-08-07 09:48:18 +000057# See https://www.debian.org/doc/manuals/developers-reference/best-pkging-practices.html#bpp-dbg
Holger Hans Peter Freyther5cbb44a2013-12-12 13:07:47 +010058override_dh_strip:
Harald Weltec91e56b2017-10-28 19:06:40 +020059 dh_strip -posmo-gbproxy --dbg-package=osmo-gbproxy-dbg
Alexander Couzens8456fe12017-10-11 07:13:15 +020060
61# Print test results in case of a failure
62override_dh_auto_test:
63 dh_auto_test || (find . -name testsuite.log -exec cat {} \; ; false)
Oliver Smithdde40502019-05-22 13:58:13 +020064
65# Don't create .pdf.gz files (barely saves space and they can't be opened directly by most pdf readers)
66override_dh_compress:
67 dh_compress -X.pdf