File: rules

package info (click to toggle)
complexity 1.10+dfsg-3.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,700 kB
  • sloc: sh: 5,111; ansic: 1,936; makefile: 97
file content (21 lines) | stat: -rwxr-xr-x 809 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

DPKG_EXPORT_BUILDFLAGS = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/default.mk
export MAN_PAGE_DATE ?= $(shell LC_ALL=C date -u -d"@$(SOURCE_DATE_EPOCH)" "+%d %b %Y")

%:
	dh $@

override_dh_autoreconf:
	## This is unfortunate, but we are forced to invoke gnulib-tool manually
	## and list modules here, since bootstrap script assumes presence of git
	## and network connection, and policy is to avoid bundled copies of
	## another project code.
	gnulib-tool --import close fdl gendocs gpl-3.0 malloc-posix snprintf stdbool
	## liboptschk.m4 was bundled m4/ alongside with gnulib macros,
	## but we dropped it. This way is even better, since we for sure get
	## the newest version of liboptschk.m4.
	ln -s /usr/share/autogen/liboptschk.m4 m4/
	dh_autoreconf