File: rules

package info (click to toggle)
mptp 0.2.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 744 kB
  • sloc: ansic: 4,554; python: 1,274; yacc: 301; lex: 132; makefile: 64; sh: 16
file content (26 lines) | stat: -rwxr-xr-x 662 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
#!/usr/bin/make -f

# DH_VERBOSE := 1
export LC_ALL=C.UTF-8

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_configure:
	# Preserve the original manual page shipped with the source.
	cp man/mptp.1 man/mptp.1.orig
	dh_auto_configure -- --with-bash-completions=`pkg-config --variable=completionsdir bash-completion`

override_dh_auto_build:
	dh_auto_build $@ --no-parallel

override_dh_auto_install:
	sed -i 's/Supress/Suppress/' man/mptp.1
	sed -i 's/conjuction/conjunction/' man/mptp.1
	dh_auto_install

execute_after_dh_auto_clean:
	# Restore preserved manual page, if any.
	test ! -r man/mptp.1.orig || mv man/mptp.1.orig man/mptp.1