File: rules

package info (click to toggle)
html2text 1.3.2a-24
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,964 kB
  • sloc: cpp: 9,601; yacc: 830; sh: 226; makefile: 114
file content (29 lines) | stat: -rwxr-xr-x 703 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
include /usr/share/dpkg/architecture.mk

export CC = $(DEB_HOST_GNU_TYPE)-g++

%:
	dh $@

override_dh_auto_clean:
	-rm -rf Makefile html2text *.o configure-tmp Dependencies debian/tests/*.result debian/html2textrc.5

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	cd debian/tests/ && sh runtests
endif

override_dh_installman:
	# darn, patch those typos (bug #309887 here)
	zcat html2textrc.5.gz | sed \
		"s/specifiy/specify/; s/elemet/element/; s/who's/whose/" \
		> debian/html2textrc.5
	dh_installman

override_dh_auto_install:
	# do nothing