File: rules

package info (click to toggle)
libcorkipset 1.1.1%2B20150311-7
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 952 kB
  • ctags: 568
  • sloc: ansic: 5,247; python: 449; sh: 77; makefile: 15
file content (24 lines) | stat: -rwxr-xr-x 694 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
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

# Security Hardening
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

override_dh_install:
	sed -i 's%#include <ipset%#include <libcorkipset%' debian/tmp/usr/include/ipset/*.h
	rm -f obj-*/docs/html/.buildinfo
	cd obj-$(DEB_TARGET_GNU_TYPE); \
	for bin in ipsetbuild ipsetcat ipsetdot; do \
		help2man -N -n "utility of libcorkipset library" \
			--version-string="$(shell dpkg-parsechangelog --show-field Version)" \
			-o $$bin.1 src/$$bin; \
	done
	dh_install

override_dh_installdocs:
	dh_installdocs -X.gitignore

%:
	dh $@ --with sphinxdoc