xref: /netbsd-src/external/ibm-public/postfix/dist/man/Makefile.in (revision 213144e1de7024d4193d04aa51005ba3a5ad95e7)
1SHELL	= /bin/sh
2
3# For now, just hard-coded rules for daemons, commands, config files.
4
5DAEMONS	= man8/bounce.8 man8/defer.8 man8/cleanup.8 man8/error.8 man8/local.8 \
6	man8/lmtp.8 man8/master.8 man8/pickup.8 man8/pipe.8 man8/qmgr.8 \
7	man8/showq.8 man8/smtp.8 man8/smtpd.8 man8/trivial-rewrite.8 \
8	man8/oqmgr.8 man8/spawn.8 man8/flush.8 man8/virtual.8 man8/qmqpd.8 \
9	man8/verify.8 man8/trace.8 man8/proxymap.8 man8/anvil.8 \
10	man8/scache.8 man8/discard.8 man8/tlsmgr.8
11COMMANDS= man1/postalias.1 man1/postcat.1 man1/postconf.1 man1/postfix.1 \
12	man1/postkick.1 man1/postlock.1 man1/postlog.1 man1/postdrop.1 \
13	man1/postmap.1 man1/postmulti.1 man1/postqueue.1 man1/postsuper.1 \
14	man1/sendmail.1 man1/mailq.1 man1/newaliases.1
15CONFIG	= man5/access.5 man5/aliases.5 man5/canonical.5 man5/relocated.5 \
16	man5/transport.5 man5/virtual.5 man5/pcre_table.5 man5/regexp_table.5 \
17	man5/cidr_table.5 man5/tcp_table.5 man5/header_checks.5 \
18	man5/body_checks.5 man5/ldap_table.5 man5/mysql_table.5 \
19	man5/pgsql_table.5 man5/master.5 man5/nisplus_table.5 \
20	man5/generic.5 man5/bounce.5 man5/postfix-wrapper.5
21TOOLS	= man1/smtp-sink.1 man1/smtp-source.1 man1/qmqp-sink.1 \
22	man1/qmqp-source.1 man1/qshape.1
23
24update:	$(DAEMONS) $(COMMANDS) $(CONFIG) $(TOOLS)
25
26clean:
27	rm -f cat?/*
28
29tidy:	clean
30
31clobber:
32	rm -f $(DAEMONS) $(COMMANDS) $(CONFIG)
33
34man8/bounce.8: ../src/bounce/bounce.c
35	../mantools/fixman ../proto/postconf.proto $? >junk && \
36	    (cmp -s junk $? || mv junk $?) && rm -f junk
37	../mantools/srctoman $? >$@
38
39man8/defer.8:
40	echo .so man8/bounce.8 >$@
41
42man8/cleanup.8: ../src/cleanup/cleanup.c
43	../mantools/fixman ../proto/postconf.proto $? >junk && \
44	    (cmp -s junk $? || mv junk $?) && rm -f junk
45	../mantools/srctoman $? >$@
46
47man8/anvil.8: ../src/anvil/anvil.c
48	../mantools/fixman ../proto/postconf.proto $? >junk && \
49	    (cmp -s junk $? || mv junk $?) && rm -f junk
50	../mantools/srctoman $? >$@
51
52man8/scache.8: ../src/scache/scache.c
53	../mantools/fixman ../proto/postconf.proto $? >junk && \
54	    (cmp -s junk $? || mv junk $?) && rm -f junk
55	../mantools/srctoman $? >$@
56
57man8/discard.8: ../src/discard/discard.c
58	../mantools/fixman ../proto/postconf.proto $? >junk && \
59	    (cmp -s junk $? || mv junk $?) && rm -f junk
60	../mantools/srctoman $? >$@
61
62man8/dnsblog.8: ../src/dnsblog/dnsblog.c
63	../mantools/fixman ../proto/postconf.proto $? >junk && \
64	    (cmp -s junk $? || mv junk $?) && rm -f junk
65	../mantools/srctoman $? >$@
66
67man8/error.8: ../src/error/error.c
68	../mantools/fixman ../proto/postconf.proto $? >junk && \
69	    (cmp -s junk $? || mv junk $?) && rm -f junk
70	../mantools/srctoman $? >$@
71
72man8/flush.8: ../src/flush/flush.c
73	../mantools/fixman ../proto/postconf.proto $? >junk && \
74	    (cmp -s junk $? || mv junk $?) && rm -f junk
75	../mantools/srctoman $? >$@
76
77man8/local.8: ../src/local/local.c
78	../mantools/fixman ../proto/postconf.proto $? >junk && \
79	    (cmp -s junk $? || mv junk $?) && rm -f junk
80	../mantools/srctoman $? >$@
81
82man8/lmtp.8:
83	echo .so man8/smtp.8 >$@
84
85man8/master.8: ../src/master/master.c
86	../mantools/fixman ../proto/postconf.proto $? >junk && \
87	    (cmp -s junk $? || mv junk $?) && rm -f junk
88	../mantools/srctoman $? >$@
89
90man8/oqmgr.8: ../src/oqmgr/qmgr.c
91	../mantools/fixman ../proto/postconf.proto $? >junk && \
92	    (cmp -s junk $? || mv junk $?) && rm -f junk
93	../mantools/srctoman $? | \
94		sed -e 's/qmgr[^_]/o&/' \
95		    -e 's/qmgr$$/o&/' \
96		    -e 's/QMGR[^_]/O&/' >$@
97
98man8/pickup.8: ../src/pickup/pickup.c
99	../mantools/fixman ../proto/postconf.proto $? >junk && \
100	    (cmp -s junk $? || mv junk $?) && rm -f junk
101	../mantools/srctoman $? >$@
102
103man8/pipe.8: ../src/pipe/pipe.c
104	../mantools/fixman ../proto/postconf.proto $? >junk && \
105	    (cmp -s junk $? || mv junk $?) && rm -f junk
106	../mantools/srctoman $? >$@
107
108man8/postscreen.8: ../src/postscreen/postscreen.c
109	../mantools/fixman ../proto/postconf.proto $? >junk && \
110	    (cmp -s junk $? || mv junk $?) && rm -f junk
111	../mantools/srctoman $? >$@
112
113man8/proxymap.8: ../src/proxymap/proxymap.c
114	../mantools/fixman ../proto/postconf.proto $? >junk && \
115	    (cmp -s junk $? || mv junk $?) && rm -f junk
116	../mantools/srctoman $? >$@
117
118man8/qmgr.8: ../src/qmgr/qmgr.c
119	../mantools/fixman ../proto/postconf.proto $? >junk && \
120	    (cmp -s junk $? || mv junk $?) && rm -f junk
121	../mantools/srctoman $? >$@
122
123man8/qmqpd.8: ../src/qmqpd/qmqpd.c
124	../mantools/fixman ../proto/postconf.proto $? >junk && \
125	    (cmp -s junk $? || mv junk $?) && rm -f junk
126	../mantools/srctoman $? >$@
127
128man8/showq.8: ../src/showq/showq.c
129	../mantools/fixman ../proto/postconf.proto $? >junk && \
130	    (cmp -s junk $? || mv junk $?) && rm -f junk
131	../mantools/srctoman $? >$@
132
133man8/spawn.8: ../src/spawn/spawn.c
134	../mantools/fixman ../proto/postconf.proto $? >junk && \
135	    (cmp -s junk $? || mv junk $?) && rm -f junk
136	../mantools/srctoman $? >$@
137
138man8/smtp.8: ../src/smtp/smtp.c
139	../mantools/fixman ../proto/postconf.proto $? >junk && \
140	    (cmp -s junk $? || mv junk $?) && rm -f junk
141	../mantools/srctoman $? >$@
142
143man8/smtpd.8: ../src/smtpd/smtpd.c
144	../mantools/fixman ../proto/postconf.proto $? >junk && \
145	    (cmp -s junk $? || mv junk $?) && rm -f junk
146	../mantools/srctoman $? >$@
147
148man8/virtual.8: ../src/virtual/virtual.c
149	../mantools/fixman ../proto/postconf.proto $? >junk && \
150	    (cmp -s junk $? || mv junk $?) && rm -f junk
151	../mantools/srctoman $? >$@
152
153man8/verify.8: ../src/verify/verify.c
154	../mantools/fixman ../proto/postconf.proto $? >junk && \
155	    (cmp -s junk $? || mv junk $?) && rm -f junk
156	../mantools/srctoman $? >$@
157
158man8/trace.8:
159	echo .so man8/bounce.8 >$@
160
161man8/tlsmgr.8: ../src/tlsmgr/tlsmgr.c
162	../mantools/fixman ../proto/postconf.proto $? >junk && \
163	    (cmp -s junk $? || mv junk $?) && rm -f junk
164	../mantools/srctoman $? >$@
165
166man8/trivial-rewrite.8: ../src/trivial-rewrite/trivial-rewrite.c
167	../mantools/fixman ../proto/postconf.proto $? >junk && \
168	    (cmp -s junk $? || mv junk $?) && rm -f junk
169	../mantools/srctoman $? >$@
170
171man1/postalias.1: ../src/postalias/postalias.c
172	../mantools/fixman ../proto/postconf.proto $? >junk && \
173	    (cmp -s junk $? || mv junk $?) && rm -f junk
174	../mantools/srctoman $? >$@
175
176man1/postcat.1: ../src/postcat/postcat.c
177	../mantools/fixman ../proto/postconf.proto $? >junk && \
178	    (cmp -s junk $? || mv junk $?) && rm -f junk
179	../mantools/srctoman $? >$@
180
181man1/postconf.1: ../src/postconf/postconf.c
182	../mantools/fixman ../proto/postconf.proto $? >junk && \
183	    (cmp -s junk $? || mv junk $?) && rm -f junk
184	../mantools/srctoman $? >$@
185
186man1/postdrop.1: ../src/postdrop/postdrop.c
187	../mantools/fixman ../proto/postconf.proto $? >junk && \
188	    (cmp -s junk $? || mv junk $?) && rm -f junk
189	../mantools/srctoman $? >$@
190
191man1/postfix.1: ../src/postfix/postfix.c
192	../mantools/fixman ../proto/postconf.proto $? >junk && \
193	    (cmp -s junk $? || mv junk $?) && rm -f junk
194	../mantools/srctoman $? >$@
195
196man1/postkick.1: ../src/postkick/postkick.c
197	../mantools/fixman ../proto/postconf.proto $? >junk && \
198	    (cmp -s junk $? || mv junk $?) && rm -f junk
199	../mantools/srctoman $? >$@
200
201man1/postlock.1: ../src/postlock/postlock.c
202	../mantools/fixman ../proto/postconf.proto $? >junk && \
203	    (cmp -s junk $? || mv junk $?) && rm -f junk
204	../mantools/srctoman $? >$@
205
206man1/postlog.1: ../src/postlog/postlog.c
207	../mantools/fixman ../proto/postconf.proto $? >junk && \
208	    (cmp -s junk $? || mv junk $?) && rm -f junk
209	../mantools/srctoman $? >$@
210
211man1/postmap.1: ../src/postmap/postmap.c
212	../mantools/fixman ../proto/postconf.proto $? >junk && \
213	    (cmp -s junk $? || mv junk $?) && rm -f junk
214	../mantools/srctoman $? >$@
215
216man1/postmulti.1: ../src/postmulti/postmulti.c
217	../mantools/fixman ../proto/postconf.proto $? >junk && \
218	    (cmp -s junk $? || mv junk $?) && rm -f junk
219	../mantools/srctoman $? >$@
220
221man1/postqueue.1: ../src/postqueue/postqueue.c
222	../mantools/fixman ../proto/postconf.proto $? >junk && \
223	    (cmp -s junk $? || mv junk $?) && rm -f junk
224	../mantools/srctoman $? >$@
225
226man1/postsuper.1: ../src/postsuper/postsuper.c
227	../mantools/fixman ../proto/postconf.proto $? >junk && \
228	    (cmp -s junk $? || mv junk $?) && rm -f junk
229	../mantools/srctoman $? >$@
230
231man1/sendmail.1: ../src/sendmail/sendmail.c
232	../mantools/fixman ../proto/postconf.proto $? >junk && \
233	    (cmp -s junk $? || mv junk $?) && rm -f junk
234	../mantools/srctoman $? >$@
235
236man1/mailq.1:
237	echo .so man1/sendmail.1 >$@
238
239man1/newaliases.1:
240	echo .so man1/sendmail.1 >$@
241
242man5/access.5: ../proto/access
243	../mantools/srctoman - $? >$@
244
245man5/aliases.5: ../proto/aliases
246	../mantools/srctoman - $? >$@
247
248man5/bounce.5: ../proto/bounce
249	../mantools/srctoman - $? >$@
250
251man5/canonical.5: ../proto/canonical
252	../mantools/srctoman - $? >$@
253
254man5/cidr_table.5: ../proto/cidr_table
255	../mantools/srctoman - $? >$@
256
257man5/generic.5: ../proto/generic
258	../mantools/srctoman - $? >$@
259
260man5/header_checks.5: ../proto/header_checks
261	../mantools/srctoman - $? >$@
262
263man5/body_checks.5: ../proto/header_checks
264	echo .so man5/header_checks.5 >$@
265
266man5/ldap_table.5: ../proto/ldap_table
267	../mantools/srctoman - $? >$@
268
269man5/master.5: ../proto/master
270	../mantools/srctoman - $? >$@
271
272man5/mysql_table.5: ../proto/mysql_table
273	../mantools/srctoman - $? >$@
274
275man5/nisplus_table.5: ../proto/nisplus_table
276	../mantools/srctoman - $? >$@
277
278man5/pcre_table.5: ../proto/pcre_table
279	../mantools/srctoman - $? >$@
280
281man5/pgsql_table.5: ../proto/pgsql_table
282	../mantools/srctoman - $? >$@
283
284man5/regexp_table.5: ../proto/regexp_table
285	../mantools/srctoman - $? >$@
286
287man5/relocated.5: ../proto/relocated
288	../mantools/srctoman - $? >$@
289
290man5/transport.5: ../proto/transport
291	../mantools/srctoman - $? >$@
292
293man5/virtual.5: ../proto/virtual
294	../mantools/srctoman - $? >$@
295
296man5/postfix-wrapper.5: ../proto/postfix-wrapper
297	../mantools/fixman ../proto/postconf.proto $? >junk && \
298	    (cmp -s junk $? || mv junk $?) && rm -f junk
299	../mantools/srctoman - $? >$@
300
301man1/smtp-sink.1: ../src/smtpstone/smtp-sink.c
302	../mantools/fixman ../proto/postconf.proto $? >junk && \
303	    (cmp -s junk $? || mv junk $?) && rm -f junk
304	../mantools/srctoman $? >$@
305
306man1/smtp-source.1: ../src/smtpstone/smtp-source.c
307	../mantools/fixman ../proto/postconf.proto $? >junk && \
308	    (cmp -s junk $? || mv junk $?) && rm -f junk
309	../mantools/srctoman $? >$@
310
311man5/tcp_table.5: ../proto/tcp_table
312	../mantools/srctoman - $? >$@
313
314man1/qmqp-sink.1: ../src/smtpstone/qmqp-sink.c
315	../mantools/fixman ../proto/postconf.proto $? >junk && \
316	    (cmp -s junk $? || mv junk $?) && rm -f junk
317	../mantools/srctoman $? >$@
318
319man1/qmqp-source.1: ../src/smtpstone/qmqp-source.c
320	../mantools/fixman ../proto/postconf.proto $? >junk && \
321	    (cmp -s junk $? || mv junk $?) && rm -f junk
322	../mantools/srctoman $? >$@
323
324man1/qshape.1: ../auxiliary/qshape/qshape.pl
325	#../mantools/fixman ../proto/postconf.proto $? >junk && \
326	#    (cmp -s junk $? || mv junk $?) && rm -f junk
327	../mantools/srctoman - $? >$@
328