File: rules

package info (click to toggle)
hping3 3.a2.ds2-7
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 1,992 kB
  • ctags: 3,213
  • sloc: ansic: 11,627; sh: 129; makefile: 82
file content (32 lines) | stat: -rwxr-xr-x 887 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
31
32
#!/usr/bin/make -f
# -*- makefile -*-

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
	NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
	MAKEFLAGS += -j$(NUMJOBS)
endif

# just for configure to display a right path (default to /usr/local/man)
# upstream Makefile patched (010_install.diff) and don't install manpage,
# see debian/hping3.manpages
override_dh_auto_configure:
	MANPATH=/usr/share/man ./configure

override_dh_auto_build:
	dh_auto_build --parallel

# install french manpage
override_dh_installman:
	dh_installman
	mkdir --parents $(CURDIR)/debian/hping3/usr/share/man/fr/man8
	gzip -9 --stdout $(CURDIR)/docs/french/hping2-fr.8 \
		> $(CURDIR)/debian/hping3/usr/share/man/fr/man8/hping3.8.gz

# do not compress example TCL scripts
override_dh_compress:
	dh_compress --exclude=.htcl

%:
	dh $@