Debian Codegraph @

man/Makefile.am

raw
1 #
2 # Copyright (C) 2009-2026 Free Software Foundation, Inc.
3 #
4 # This file is part of GNU Inetutils.
5 #
6 # GNU Inetutils is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or (at
9 # your option) any later version.
10 #
11 # GNU Inetutils is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see `http://www.gnu.org/licenses/'.
18
19 all = hostname.1 dnsdomainname.1 ifconfig.1 inetd.8 ftp.1 ftpd.8 \
20 logger.1 ping.1 ping6.1 rcp.1 rexec.1 rexecd.8 rlogin.1 \
21 rlogind.8 rsh.1 rshd.8 syslogd.8 talk.1 talkd.8 telnet.1 \
22 telnetd.8 tftp.1 tftpd.8 traceroute.1 uucpd.8 whois.1
23
24 dist_man_MANS =
25
26 if ENABLE_hostname
27 dist_man_MANS += hostname.1
28 endif
29
30 if ENABLE_dnsdomainname
31 dist_man_MANS += dnsdomainname.1
32 endif
33
34 if ENABLE_ifconfig
35 dist_man_MANS += ifconfig.1
36 endif
37
38 if ENABLE_inetd
39 dist_man_MANS += inetd.8
40 endif
41
42 if ENABLE_ftp
43 dist_man_MANS += ftp.1
44 endif
45
46 if ENABLE_ftpd
47 dist_man_MANS += ftpd.8
48 endif
49
50 if ENABLE_logger
51 dist_man_MANS += logger.1
52 endif
53
54 if ENABLE_ping
55 dist_man_MANS += ping.1
56 endif
57
58 if ENABLE_ping6
59 dist_man_MANS += ping6.1
60 endif
61
62 if ENABLE_rcp
63 dist_man_MANS += rcp.1
64 endif
65
66 if ENABLE_rexec
67 dist_man_MANS += rexec.1
68 endif
69
70 if ENABLE_rexecd
71 dist_man_MANS += rexecd.8
72 endif
73
74 if ENABLE_rlogin
75 dist_man_MANS += rlogin.1
76 endif
77
78 if ENABLE_rlogind
79 dist_man_MANS += rlogind.8
80 endif
81
82 if ENABLE_rsh
83 dist_man_MANS += rsh.1
84 endif
85
86 if ENABLE_rshd
87 dist_man_MANS += rshd.8
88 endif
89
90 if ENABLE_syslogd
91 dist_man_MANS += syslogd.8
92 endif
93
94 if ENABLE_talk
95 dist_man_MANS += talk.1
96 endif
97
98 if ENABLE_talkd
99 dist_man_MANS += talkd.8
100 endif
101
102 if ENABLE_telnet
103 dist_man_MANS += telnet.1
104 endif
105
106 if ENABLE_telnetd
107 dist_man_MANS += telnetd.8
108 endif
109
110 if ENABLE_tftp
111 dist_man_MANS += tftp.1
112 endif
113
114 if ENABLE_tftpd
115 dist_man_MANS += tftpd.8
116 endif
117
118 if ENABLE_traceroute
119 dist_man_MANS += traceroute.1
120 endif
121
122 if ENABLE_uucpd
123 dist_man_MANS += uucpd.8
124 endif
125
126 if ENABLE_whois
127 dist_man_MANS += whois.1
128 endif
129
130 EXTRA_DIST = $(all) $(all:.1=.h2m) $(all:.8=.h2m)
131
132 MAINTAINERCLEANFILES = $(all)
133
134 ftp.1: ftp.h2m $(top_srcdir)/ftp/main.c $(top_srcdir)/.version
135
136 ftpd.8: ftpd.h2m $(top_srcdir)/ftpd/ftpd.c $(top_srcdir)/.version
137
138 hostname.1: hostname.h2m $(top_srcdir)/src/hostname.c $(top_srcdir)/.version
139
140 dnsdomainname.1: dnsdomainname.h2m $(top_srcdir)/src/dnsdomainname.c $(top_srcdir)/.version
141
142 ifconfig.1: ifconfig.h2m $(top_srcdir)/ifconfig/options.c $(top_srcdir)/.version
143
144 inetd.8: inetd.h2m $(top_srcdir)/src/inetd.c $(top_srcdir)/.version
145
146 logger.1: logger.h2m $(top_srcdir)/src/logger.c $(top_srcdir)/.version
147
148 ping.1: ping.h2m $(top_srcdir)/ping/ping.c $(top_srcdir)/.version
149
150 ping6.1: ping6.h2m $(top_srcdir)/ping/ping6.c $(top_srcdir)/.version
151
152 rcp.1: rcp.h2m $(top_srcdir)/src/rcp.c $(top_srcdir)/.version
153
154 rexec.1: rexec.h2m $(top_srcdir)/src/rexec.c $(top_srcdir)/.version
155
156 rexecd.8: rexecd.h2m $(top_srcdir)/src/rexecd.c $(top_srcdir)/.version
157
158 rlogin.1: rlogin.h2m $(top_srcdir)/src/rlogin.c $(top_srcdir)/.version
159
160 rlogind.8: rlogind.h2m $(top_srcdir)/src/rlogind.c $(top_srcdir)/.version
161
162 rsh.1: rsh.h2m $(top_srcdir)/src/rsh.c $(top_srcdir)/.version
163
164 rshd.8: rshd.h2m $(top_srcdir)/src/rshd.c $(top_srcdir)/.version
165
166 syslogd.8: syslogd.h2m $(top_srcdir)/src/syslogd.c $(top_srcdir)/.version
167
168 talk.1: talk.h2m $(top_srcdir)/talk/talk.c $(top_srcdir)/.version
169
170 talkd.8: talkd.h2m $(top_srcdir)/talkd/talkd.c $(top_srcdir)/.version
171
172 telnet.1: telnet.h2m $(top_srcdir)/telnet/main.c $(top_srcdir)/.version
173
174 telnetd.8: telnetd.h2m $(top_srcdir)/telnetd/telnetd.c $(top_srcdir)/.version
175
176 tftp.1: tftp.h2m $(top_srcdir)/src/tftp.c $(top_srcdir)/.version
177
178 tftpd.8: tftpd.h2m $(top_srcdir)/src/tftpd.c $(top_srcdir)/.version
179
180 traceroute.1: traceroute.h2m $(top_srcdir)/src/traceroute.c $(top_srcdir)/.version
181
182 uucpd.8: uucpd.h2m $(top_srcdir)/src/uucpd.c $(top_srcdir)/.version
183
184 whois.1: whois.h2m $(top_srcdir)/whois/whois.c $(top_srcdir)/.version
185
186 .h2m.1:
187 $(MAKE) man TOOL=$* SECTION=1
188
189 .h2m.8:
190 $(MAKE) man TOOL=$* SECTION=8
191
192 mapped_name = `echo ../$(TOOL)/$(TOOL) \
193 | sed s,../ping6/ping6,../ping/ping6,\
194 | sed s,../hostname/hostname,../src/hostname,\
195 | sed s,../dnsdomainname/dnsdomainname,../src/dnsdomainname,\
196 | sed s,../inetd/inetd,../src/inetd,\
197 | sed s,../logger/logger,../src/logger,\
198 | sed s,../rcp/rcp,../src/rcp,\
199 | sed s,../rexec/rexec,../src/rexec,\
200 | sed s,../rexecd/rexecd,../src/rexecd,\
201 | sed s,../rlogin/rlogin,../src/rlogin,\
202 | sed s,../rlogind/rlogind,../src/rlogind,\
203 | sed s,../rsh/rsh,../src/rsh,\
204 | sed s,../rshd/rshd,../src/rshd,\
205 | sed s,../syslogd/syslogd,../src/syslogd,\
206 | sed s,../tftp/tftp,../src/tftp,\
207 | sed s,../tftpd/tftpd,../src/tftpd,\
208 | sed s,../traceroute/traceroute,../src/traceroute,\
209 | sed s,../uucpd/uucpd,../src/uucpd,`
210
211 .PHONY: man
212 man:
213 $(HELP2MAN) \
214 --source='$(PACKAGE_STRING)' \
215 --include=$(srcdir)/$(TOOL).h2m \
216 --output=$(TOOL).$(SECTION) \
217 --section $(SECTION) \
218 $(mapped_name)