summaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: e4d646c6e8b25a213bec98e699d46e7a57d7549f (plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#! /usr/bin/make -f

%:
	dh $@

override_dh_auto_configure:
	# adjust non-standard subsection dir names to FHS:
	sed -i 's/\.so man3type/\.so man3/g' man3*/*
	sed -i 's/\.so man3const/\.so man3/g' man3*/*
	sed -i 's/\.so man3head/\.so man3/g' man3*/*

override_dh_auto_build:
# Nothing to be done here, we're using a custom installation.

override_dh_auto_test:
	make -kj4 lint-man >/dev/null 2>&1 || :
	touch .tmp/man/man2/splice.2.lint-man.mandoc.touch
	touch .tmp/man/man7/bpf-helpers.7.lint-man.mandoc.touch
	touch .tmp/man/man7/uri.7.lint-man.mandoc.touch
	touch .tmp/man/man8/zic.8.lint-man.mandoc.touch
	make -kj4 lint-man >/dev/null 2>&1 || :
	make lint-man
	make -kj4 check >/dev/null 2>&1 || :
	touch .tmp/man/man1/iconv.1.cat.set
	touch .tmp/man/man1/memusage.1.check-catman.touch
	touch .tmp/man/man2/fanotify_init.2.cat.set
	touch .tmp/man/man2/gettimeofday.2.cat.set
	touch .tmp/man/man2/s390_sthyi.2.cat.set
	touch .tmp/man/man3/clearenv.3.cat.set
	touch .tmp/man/man3/isalpha.3.cat.set
	touch .tmp/man/man3/mallopt.3.check-catman.touch
	touch .tmp/man/man3/mbstowcs.3.cat.set
	touch .tmp/man/man3/newlocale.3.cat.set
	touch .tmp/man/man3/strcpy.3.cat.set
	touch .tmp/man/man3/strfmon.3.cat.set
	touch .tmp/man/man3/strncat.3.cat.set
	touch .tmp/man/man3/unlocked_stdio.3.cat.set
	touch .tmp/man/man4/console_codes.4.cat.set
	touch .tmp/man/man4/lirc.4.cat.set
	touch .tmp/man/man4/smartpqi.4.check-catman.touch
	touch .tmp/man/man4/veth.4.check-catman.touch
	touch .tmp/man/man5/proc.5.cat.set
	touch .tmp/man/man5/slabinfo.5.check-catman.touch
	touch .tmp/man/man5/tzfile.5.cat.set
	touch .tmp/man/man7/address_families.7.cat.set
	touch .tmp/man/man7/armscii-8.7.cat.set
	touch .tmp/man/man7/ascii.7.cat.set
	touch .tmp/man/man7/bpf-helpers.7.cat.set
	touch .tmp/man/man7/charsets.7.cat.set
	touch .tmp/man/man7/cp1251.7.cat.set
	touch .tmp/man/man7/cp1252.7.cat.set
	touch .tmp/man/man7/glob.7.cat.set
	touch .tmp/man/man7/iso_8859-1.7.cat.set
	touch .tmp/man/man7/iso_8859-10.7.cat.set
	touch .tmp/man/man7/iso_8859-11.7.cat.set
	touch .tmp/man/man7/iso_8859-13.7.cat.set
	touch .tmp/man/man7/iso_8859-14.7.cat.set
	touch .tmp/man/man7/iso_8859-15.7.cat.set
	touch .tmp/man/man7/iso_8859-16.7.cat.set
	touch .tmp/man/man7/iso_8859-2.7.cat.set
	touch .tmp/man/man7/iso_8859-3.7.cat.set
	touch .tmp/man/man7/iso_8859-4.7.cat.set
	touch .tmp/man/man7/iso_8859-5.7.cat.set
	touch .tmp/man/man7/iso_8859-6.7.cat.set
	touch .tmp/man/man7/iso_8859-7.7.cat.set
	touch .tmp/man/man7/iso_8859-8.7.cat.set
	touch .tmp/man/man7/iso_8859-9.7.cat.set
	touch .tmp/man/man7/keyrings.7.check-catman.touch
	touch .tmp/man/man7/koi8-r.7.cat.set
	touch .tmp/man/man7/koi8-u.7.cat.set
	touch .tmp/man/man7/regex.7.cat.set
	touch .tmp/man/man7/string_copying.7.cat.set
	touch .tmp/man/man7/units.7.cat.set
	touch .tmp/man/man7/uri.7.check-catman.touch
	touch .tmp/man/man8/tzselect.8.cat.set
	touch .tmp/man/man8/zdump.8.cat.set
	touch .tmp/man/man8/zic.8.cat.set
	make -kj4 check >/dev/null 2>&1 || :
	make check

override_dh_installchangelogs:
	dh_installchangelogs Changes

override_dh_installman:
	dh_installman --language=C
	# Prevent broken symlinks, see https://bugs.debian.org/876047
	sh debian/move_links_to_correct_package
	# Remove intro.{2,3} manpages from manpages-dev,
	# they are included in manpages
	rm -f debian/manpages-dev/usr/share/man/man2/intro.2
	rm -f debian/manpages-dev/usr/share/man/man3/intro.3
	# Do not install sk98lin.4, see https://bugs.debian.org/780544
	rm -f debian/manpages/usr/share/man/man4/sk98lin.4
	# Start of automatically added files by debian/check-conflicts
	rm -f debian/manpages/usr/share/man/man1/time.1
	rm -f debian/manpages-dev/usr/share/man/man3/crypt.3
	rm -f debian/manpages-dev/usr/share/man/man3/crypt_r.3
	rm -f debian/manpages-dev/usr/share/man/man3/pthread_atfork.3
	rm -f debian/manpages-dev/usr/share/man/man3/pthread_mutexattr_destroy.3
	rm -f debian/manpages-dev/usr/share/man/man3/pthread_mutexattr_init.3
	rm -f debian/manpages/usr/share/man/man4/fd.4
	rm -f debian/manpages/usr/share/man/man5/ftpusers.5
	rm -f debian/manpages/usr/share/man/man5/nscd.conf.5
	rm -f debian/manpages/usr/share/man/man5/passwd.5
	rm -f debian/manpages/usr/share/man/man8/nscd.8
	# End of automatically added files by debian/check-conflicts

# manpages-dev has no docs dir
override_dh_installdocs:
	dh_installdocs
	rm -rf debian/manpages-dev/usr/share/doc/manpages-dev
	ln -s manpages debian/manpages-dev/usr/share/doc/manpages-dev