Harald Welte | 95f4206 | 2010-08-24 15:33:04 +0200 | [diff] [blame] | 1 | #!/usr/bin/make -f |
Alexander Couzens | d040bab | 2017-08-07 09:48:18 +0000 | [diff] [blame] | 2 | # 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 Welte | 95f4206 | 2010-08-24 15:33:04 +0200 | [diff] [blame] | 42 | |
Alexander Couzens | d040bab | 2017-08-07 09:48:18 +0000 | [diff] [blame] | 43 | # main packaging script based on dh7 syntax |
Harald Welte | 95f4206 | 2010-08-24 15:33:04 +0200 | [diff] [blame] | 44 | %: |
Alexander Couzens | d040bab | 2017-08-07 09:48:18 +0000 | [diff] [blame] | 45 | dh $@ --with autoreconf |
Eric Butler | 3707448 | 2012-08-14 17:40:58 -0700 | [diff] [blame] | 46 | |
Alexander Couzens | d040bab | 2017-08-07 09:48:18 +0000 | [diff] [blame] | 47 | # debmake generated override targets |
| 48 | # Set options for ./configure |
Oliver Smith | dde4050 | 2019-05-22 13:58:13 +0200 | [diff] [blame] | 49 | CONFIGURE_FLAGS += --enable-iu --with-systemdsystemunitdir=/lib/systemd/system --enable-manuals |
Pau Espin Pedrol | e3f18e4 | 2018-09-13 11:48:44 +0200 | [diff] [blame] | 50 | override_dh_auto_configure: |
Alexander Couzens | d040bab | 2017-08-07 09:48:18 +0000 | [diff] [blame] | 51 | 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 Freyther | d7b97d4 | 2012-11-06 19:26:50 +0100 | [diff] [blame] | 56 | |
Alexander Couzens | d040bab | 2017-08-07 09:48:18 +0000 | [diff] [blame] | 57 | # See https://www.debian.org/doc/manuals/developers-reference/best-pkging-practices.html#bpp-dbg |
Holger Hans Peter Freyther | 5cbb44a | 2013-12-12 13:07:47 +0100 | [diff] [blame] | 58 | override_dh_strip: |
Harald Welte | c91e56b | 2017-10-28 19:06:40 +0200 | [diff] [blame] | 59 | dh_strip -posmo-sgsn --dbg-package=osmo-sgsn-dbg |
| 60 | dh_strip -posmo-gtphub --dbg-package=osmo-gtphub-dbg |
| 61 | dh_strip -posmo-gbproxy --dbg-package=osmo-gbproxy-dbg |
Alexander Couzens | 8456fe1 | 2017-10-11 07:13:15 +0200 | [diff] [blame] | 62 | |
| 63 | # Print test results in case of a failure |
| 64 | override_dh_auto_test: |
| 65 | dh_auto_test || (find . -name testsuite.log -exec cat {} \; ; false) |
Oliver Smith | dde4050 | 2019-05-22 13:58:13 +0200 | [diff] [blame] | 66 | |
| 67 | # Don't create .pdf.gz files (barely saves space and they can't be opened directly by most pdf readers) |
| 68 | override_dh_compress: |
| 69 | dh_compress -X.pdf |