Harald Welte | 640d72a | 2010-08-24 15:33:04 +0200 | [diff] [blame] | 1 | #!/usr/bin/make -f |
Alexander Couzens | bf0ab74 | 2017-08-07 07:55:28 +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 |
Harald Welte | 640d72a | 2010-08-24 15:33:04 +0200 | [diff] [blame] | 8 | |
Alexander Couzens | bf0ab74 | 2017-08-07 07:55:28 +0000 | [diff] [blame] | 9 | DEBIAN := $(shell dpkg-parsechangelog | grep '^Version:' | cut -d' ' -f2) |
Eric Butler | 010c955 | 2012-08-14 21:01:20 -0700 | [diff] [blame] | 10 | DEBVERS := $(shell echo '$(DEBIAN)' | cut -d- -f1) |
| 11 | VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/[+-].*//' -e 's/~//g') |
| 12 | |
Alexander Couzens | 32330aa | 2017-09-14 03:00:20 +0000 | [diff] [blame] | 13 | CFLAGS += -g |
| 14 | |
Alexander Couzens | bf0ab74 | 2017-08-07 07:55:28 +0000 | [diff] [blame] | 15 | # main packaging script based on dh7 syntax |
Harald Welte | 640d72a | 2010-08-24 15:33:04 +0200 | [diff] [blame] | 16 | %: |
Alexander Couzens | bf0ab74 | 2017-08-07 07:55:28 +0000 | [diff] [blame] | 17 | dh $@ --with autoreconf |
Eric Butler | a73ca05 | 2012-08-14 17:40:58 -0700 | [diff] [blame] | 18 | |
Alexander Couzens | bf0ab74 | 2017-08-07 07:55:28 +0000 | [diff] [blame] | 19 | # debmake generated override targets |
| 20 | # Set options for ./configure |
| 21 | #CONFIGURE_FLAGS = <options for ./configure> |
| 22 | #overrride_dh_configure: |
| 23 | # dh_configure -- $(CONFIGURE_FLAGS) |
| 24 | # |
| 25 | # Do not install libtool archive, python .pyc .pyo |
| 26 | #override_dh_install: |
| 27 | # dh_install --list-missing -X.la -X.pyc -X.pyo |
| 28 | |
Alexander Couzens | c5ecebb | 2017-10-11 06:05:33 +0200 | [diff] [blame] | 29 | override_dh_auto_test: |
| 30 | dh_auto_test || (find . -name testsuite.log -exec cat {} \; ; false) |
| 31 | |
Holger Hans Peter Freyther | 93fda87 | 2012-11-06 19:26:50 +0100 | [diff] [blame] | 32 | override_dh_autoreconf: |
Alexander Couzens | bf0ab74 | 2017-08-07 07:55:28 +0000 | [diff] [blame] | 33 | echo $(VERSION) > .tarball-version |
| 34 | dh_autoreconf |
Holger Hans Peter Freyther | 93fda87 | 2012-11-06 19:26:50 +0100 | [diff] [blame] | 35 | |
Alexander Couzens | bf0ab74 | 2017-08-07 07:55:28 +0000 | [diff] [blame] | 36 | # See https://www.debian.org/doc/manuals/developers-reference/best-pkging-practices.html#bpp-dbg |