File: rules

package info (click to toggle)
xml-security-c 2.0.4-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,128 kB
  • sloc: cpp: 45,950; sh: 4,157; makefile: 560; perl: 228
file content (30 lines) | stat: -rwxr-xr-x 841 bytes parent folder | download
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
#!/usr/bin/make -f

# Where the xml-security-c-utils man pages are installed.
UTILS_MAN1DIR := debian/xml-security-c-utils/usr/share/man/man1

# Enable compiler hardening flags.
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --without-xalan

# Install man pages for the xml-security-c-utils binaries.
override_dh_install:
	dh_install
	mkdir -p '$(UTILS_MAN1DIR)'
	set -e; VERSION=$$(./config.status --version | sed 's/.* //;q');\
	for pod in debian/man-pages/*.pod ; do			\
	    pod2man "$$pod" --section 1 --name=`basename "$$pod"`	\
		--center 'Apache XML Security' --release "$$VERSION"	\
		'$(UTILS_MAN1DIR)'/`basename "$$pod" .pod`.1 ;		\
	done

override_dh_installdocs:
	dh_installdocs -A NOTICE.txt

override_dh_missing:
	dh_missing --fail-missing -Xlibxml-security-c.la