File: rules

package info (click to toggle)
qrouter 1.3.108-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,440 kB
  • sloc: ansic: 15,489; sh: 7,504; makefile: 137; tcl: 3
file content (33 lines) | stat: -rwxr-xr-x 867 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
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/make -f

#export DH_VERBOSE=1

include /usr/share/dpkg/pkg-info.mk

# The build script crashes if "-pie" is given to the build command. Therefore
# enabling the missing hardening options with LDFLAGS_MAINT_APPEND (together
# with the --as-needed option) instead of with
# "DEB_BUILD_MAINT_OPTIONS = hardening=+all":
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,now -Wl,--as-needed


CHANGELOG_DATE ?= $(shell LC_ALL=C date -u -d @$(SOURCE_DATE_EPOCH) +"%d %B %Y")

%:
	dh $@ --with autoreconf


override_dh_auto_configure:
	dh_auto_configure -- --with-libdir=lib/qrouter

override_dh_auto_clean:
	dh_auto_clean
	$(RM) -f Makefile config.log config.status
	$(RM) -f *.o
	$(RM) -f *.so qrouterexec
	$(RM) -f qrouter.sh qrouter.tcl
	$(RM) debian/man/*.1

override_dh_installman:
	cd debian/man ; CHANGELOG_DATE="$(CHANGELOG_DATE)" ./genmanpages.sh
	dh_installman