xref: /netbsd-src/external/ibm-public/postfix/dist/man/Makefile.in (revision f3bc92a4f25066883a5d85d66df30605583c883c)
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 man8/postscreen.8 \
11	man8/dnsblog.8 man8/tlsproxy.8 man8/postlogd.8
12COMMANDS= man1/postalias.1 man1/postcat.1 man1/postconf.1 man1/postfix.1 \
13	man1/postkick.1 man1/postlock.1 man1/postlog.1 man1/postdrop.1 \
14	man1/postmap.1 man1/postmulti.1 man1/postqueue.1 man1/postsuper.1 \
15	man1/sendmail.1 man1/mailq.1 man1/newaliases.1 man1/postfix-tls.1
16CONFIG	= man5/access.5 man5/aliases.5 man5/canonical.5 man5/relocated.5 \
17	man5/transport.5 man5/virtual.5 man5/pcre_table.5 man5/regexp_table.5 \
18	man5/cidr_table.5 man5/tcp_table.5 man5/header_checks.5 \
19	man5/body_checks.5 man5/ldap_table.5 man5/lmdb_table.5 \
20	man5/memcache_table.5 man5/mysql_table.5 \
21	man5/pgsql_table.5 man5/master.5 man5/nisplus_table.5 \
22	man5/generic.5 man5/bounce.5 man5/postfix-wrapper.5 \
23	man5/sqlite_table.5 man5/socketmap_table.5
24TOOLS	= man1/smtp-sink.1 man1/smtp-source.1 man1/qmqp-sink.1 \
25	man1/qmqp-source.1 man1/qshape.1 man1/posttls-finger.1 \
26	man1/makedefs.1
27
28update:	$(DAEMONS) $(COMMANDS) $(CONFIG) $(TOOLS)
29
30clean:
31	rm -f cat?/*
32
33tidy:	clean
34
35clobber:
36	rm -f $(DAEMONS) $(COMMANDS) $(CONFIG)
37
38man8/bounce.8: ../src/bounce/bounce.c
39	../mantools/fixman ../proto/postconf.proto $? >junk && \
40	    (cmp -s junk $? || mv junk $?) && rm -f junk
41	../mantools/srctoman $? >$@
42
43man8/defer.8:
44	echo .so man8/bounce.8 >$@
45
46man8/cleanup.8: ../src/cleanup/cleanup.c
47	../mantools/fixman ../proto/postconf.proto $? >junk && \
48	    (cmp -s junk $? || mv junk $?) && rm -f junk
49	../mantools/srctoman $? >$@
50
51man8/anvil.8: ../src/anvil/anvil.c
52	../mantools/fixman ../proto/postconf.proto $? >junk && \
53	    (cmp -s junk $? || mv junk $?) && rm -f junk
54	../mantools/srctoman $? >$@
55
56man8/scache.8: ../src/scache/scache.c
57	../mantools/fixman ../proto/postconf.proto $? >junk && \
58	    (cmp -s junk $? || mv junk $?) && rm -f junk
59	../mantools/srctoman $? >$@
60
61man8/discard.8: ../src/discard/discard.c
62	../mantools/fixman ../proto/postconf.proto $? >junk && \
63	    (cmp -s junk $? || mv junk $?) && rm -f junk
64	../mantools/srctoman $? >$@
65
66man8/dnsblog.8: ../src/dnsblog/dnsblog.c
67	../mantools/fixman ../proto/postconf.proto $? >junk && \
68	    (cmp -s junk $? || mv junk $?) && rm -f junk
69	../mantools/srctoman $? >$@
70
71man8/error.8: ../src/error/error.c
72	../mantools/fixman ../proto/postconf.proto $? >junk && \
73	    (cmp -s junk $? || mv junk $?) && rm -f junk
74	../mantools/srctoman $? >$@
75
76man8/flush.8: ../src/flush/flush.c
77	../mantools/fixman ../proto/postconf.proto $? >junk && \
78	    (cmp -s junk $? || mv junk $?) && rm -f junk
79	../mantools/srctoman $? >$@
80
81man8/local.8: ../src/local/local.c
82	../mantools/fixman ../proto/postconf.proto $? >junk && \
83	    (cmp -s junk $? || mv junk $?) && rm -f junk
84	../mantools/srctoman $? >$@
85
86man8/lmtp.8:
87	echo .so man8/smtp.8 >$@
88
89man8/master.8: ../src/master/master.c
90	../mantools/fixman ../proto/postconf.proto $? >junk && \
91	    (cmp -s junk $? || mv junk $?) && rm -f junk
92	../mantools/srctoman $? >$@
93
94man8/oqmgr.8: ../src/oqmgr/qmgr.c
95	../mantools/fixman ../proto/postconf.proto $? >junk && \
96	    (cmp -s junk $? || mv junk $?) && rm -f junk
97	../mantools/srctoman $? | \
98		sed -e 's/qmgr[^_]/o&/' \
99		    -e 's/qmgr$$/o&/' \
100		    -e 's/QMGR[^_]/O&/' >$@
101
102man8/pickup.8: ../src/pickup/pickup.c
103	../mantools/fixman ../proto/postconf.proto $? >junk && \
104	    (cmp -s junk $? || mv junk $?) && rm -f junk
105	../mantools/srctoman $? >$@
106
107man8/pipe.8: ../src/pipe/pipe.c
108	../mantools/fixman ../proto/postconf.proto $? >junk && \
109	    (cmp -s junk $? || mv junk $?) && rm -f junk
110	../mantools/srctoman $? >$@
111
112man8/postlogd.8: ../src/postlogd/postlogd.c
113	../mantools/fixman ../proto/postconf.proto $? >junk && \
114	    (cmp -s junk $? || mv junk $?) && rm -f junk
115	../mantools/srctoman $? >$@
116
117man8/postscreen.8: ../src/postscreen/postscreen.c
118	../mantools/fixman ../proto/postconf.proto $? >junk && \
119	    (cmp -s junk $? || mv junk $?) && rm -f junk
120	../mantools/srctoman $? >$@
121
122man8/proxymap.8: ../src/proxymap/proxymap.c
123	../mantools/fixman ../proto/postconf.proto $? >junk && \
124	    (cmp -s junk $? || mv junk $?) && rm -f junk
125	../mantools/srctoman $? >$@
126
127man8/qmgr.8: ../src/qmgr/qmgr.c
128	../mantools/fixman ../proto/postconf.proto $? >junk && \
129	    (cmp -s junk $? || mv junk $?) && rm -f junk
130	../mantools/srctoman $? >$@
131
132man8/qmqpd.8: ../src/qmqpd/qmqpd.c
133	../mantools/fixman ../proto/postconf.proto $? >junk && \
134	    (cmp -s junk $? || mv junk $?) && rm -f junk
135	../mantools/srctoman $? >$@
136
137man8/showq.8: ../src/showq/showq.c
138	../mantools/fixman ../proto/postconf.proto $? >junk && \
139	    (cmp -s junk $? || mv junk $?) && rm -f junk
140	../mantools/srctoman $? >$@
141
142man8/spawn.8: ../src/spawn/spawn.c
143	../mantools/fixman ../proto/postconf.proto $? >junk && \
144	    (cmp -s junk $? || mv junk $?) && rm -f junk
145	../mantools/srctoman $? >$@
146
147man8/smtp.8: ../src/smtp/smtp.c
148	../mantools/fixman ../proto/postconf.proto $? >junk && \
149	    (cmp -s junk $? || mv junk $?) && rm -f junk
150	../mantools/srctoman $? >$@
151
152man8/smtpd.8: ../src/smtpd/smtpd.c
153	../mantools/fixman ../proto/postconf.proto $? >junk && \
154	    (cmp -s junk $? || mv junk $?) && rm -f junk
155	../mantools/srctoman $? >$@
156
157man8/tlsproxy.8: ../src/tlsproxy/tlsproxy.c
158	../mantools/fixman ../proto/postconf.proto $? >junk && \
159	    (cmp -s junk $? || mv junk $?) && rm -f junk
160	../mantools/srctoman $? >$@
161
162man8/virtual.8: ../src/virtual/virtual.c
163	../mantools/fixman ../proto/postconf.proto $? >junk && \
164	    (cmp -s junk $? || mv junk $?) && rm -f junk
165	../mantools/srctoman $? >$@
166
167man8/verify.8: ../src/verify/verify.c
168	../mantools/fixman ../proto/postconf.proto $? >junk && \
169	    (cmp -s junk $? || mv junk $?) && rm -f junk
170	../mantools/srctoman $? >$@
171
172man8/trace.8:
173	echo .so man8/bounce.8 >$@
174
175man8/tlsmgr.8: ../src/tlsmgr/tlsmgr.c
176	../mantools/fixman ../proto/postconf.proto $? >junk && \
177	    (cmp -s junk $? || mv junk $?) && rm -f junk
178	../mantools/srctoman $? >$@
179
180man8/trivial-rewrite.8: ../src/trivial-rewrite/trivial-rewrite.c
181	../mantools/fixman ../proto/postconf.proto $? >junk && \
182	    (cmp -s junk $? || mv junk $?) && rm -f junk
183	../mantools/srctoman $? >$@
184
185man1/postalias.1: ../src/postalias/postalias.c
186	../mantools/fixman ../proto/postconf.proto $? >junk && \
187	    (cmp -s junk $? || mv junk $?) && rm -f junk
188	../mantools/srctoman $? >$@
189
190man1/postcat.1: ../src/postcat/postcat.c
191	../mantools/fixman ../proto/postconf.proto $? >junk && \
192	    (cmp -s junk $? || mv junk $?) && rm -f junk
193	../mantools/srctoman $? >$@
194
195man1/postconf.1: ../src/postconf/postconf.c
196	../mantools/fixman ../proto/postconf.proto $? >junk && \
197	    (cmp -s junk $? || mv junk $?) && rm -f junk
198	../mantools/srctoman $? >$@
199
200man1/postdrop.1: ../src/postdrop/postdrop.c
201	../mantools/fixman ../proto/postconf.proto $? >junk && \
202	    (cmp -s junk $? || mv junk $?) && rm -f junk
203	../mantools/srctoman $? >$@
204
205man1/postfix.1: ../src/postfix/postfix.c
206	../mantools/fixman ../proto/postconf.proto $? >junk && \
207	    (cmp -s junk $? || mv junk $?) && rm -f junk
208	../mantools/srctoman $? >$@
209
210man1/postfix-tls.1: ../conf/postfix-tls-script
211	../mantools/fixman ../proto/postconf.proto $? >junk && \
212	    (cmp -s junk $? || mv junk $?) && rm -f junk
213	../mantools/srctoman - $? >$@
214
215man1/postkick.1: ../src/postkick/postkick.c
216	../mantools/fixman ../proto/postconf.proto $? >junk && \
217	    (cmp -s junk $? || mv junk $?) && rm -f junk
218	../mantools/srctoman $? >$@
219
220man1/postlock.1: ../src/postlock/postlock.c
221	../mantools/fixman ../proto/postconf.proto $? >junk && \
222	    (cmp -s junk $? || mv junk $?) && rm -f junk
223	../mantools/srctoman $? >$@
224
225man1/postlog.1: ../src/postlog/postlog.c
226	../mantools/fixman ../proto/postconf.proto $? >junk && \
227	    (cmp -s junk $? || mv junk $?) && rm -f junk
228	../mantools/srctoman $? >$@
229
230man1/postmap.1: ../src/postmap/postmap.c
231	../mantools/fixman ../proto/postconf.proto $? >junk && \
232	    (cmp -s junk $? || mv junk $?) && rm -f junk
233	../mantools/srctoman $? >$@
234
235man1/postmulti.1: ../src/postmulti/postmulti.c
236	../mantools/fixman ../proto/postconf.proto $? >junk && \
237	    (cmp -s junk $? || mv junk $?) && rm -f junk
238	../mantools/srctoman $? >$@
239
240man1/postqueue.1: ../src/postqueue/postqueue.c
241	../mantools/fixman ../proto/postconf.proto $? >junk && \
242	    (cmp -s junk $? || mv junk $?) && rm -f junk
243	../mantools/srctoman $? >$@
244
245man1/postsuper.1: ../src/postsuper/postsuper.c
246	../mantools/fixman ../proto/postconf.proto $? >junk && \
247	    (cmp -s junk $? || mv junk $?) && rm -f junk
248	../mantools/srctoman $? >$@
249
250man1/sendmail.1: ../src/sendmail/sendmail.c
251	../mantools/fixman ../proto/postconf.proto $? >junk && \
252	    (cmp -s junk $? || mv junk $?) && rm -f junk
253	../mantools/srctoman $? >$@
254
255man1/mailq.1:
256	echo .so man1/sendmail.1 >$@
257
258man1/newaliases.1:
259	echo .so man1/sendmail.1 >$@
260
261man5/access.5: ../proto/access
262	../mantools/fixman ../proto/postconf.proto $? >junk && \
263	    (cmp -s junk $? || mv junk $?) && rm -f junk
264	../mantools/srctoman - $? >$@
265
266man5/aliases.5: ../proto/aliases
267	../mantools/fixman ../proto/postconf.proto $? >junk && \
268	    (cmp -s junk $? || mv junk $?) && rm -f junk
269	../mantools/srctoman - $? >$@
270
271man5/bounce.5: ../proto/bounce
272	../mantools/fixman ../proto/postconf.proto $? >junk && \
273	    (cmp -s junk $? || mv junk $?) && rm -f junk
274	../mantools/srctoman - $? >$@
275
276man5/canonical.5: ../proto/canonical
277	../mantools/fixman ../proto/postconf.proto $? >junk && \
278	    (cmp -s junk $? || mv junk $?) && rm -f junk
279	../mantools/srctoman - $? >$@
280
281man5/cidr_table.5: ../proto/cidr_table
282	../mantools/fixman ../proto/postconf.proto $? >junk && \
283	    (cmp -s junk $? || mv junk $?) && rm -f junk
284	../mantools/srctoman - $? >$@
285
286man5/generic.5: ../proto/generic
287	../mantools/fixman ../proto/postconf.proto $? >junk && \
288	    (cmp -s junk $? || mv junk $?) && rm -f junk
289	../mantools/srctoman - $? >$@
290
291man5/header_checks.5: ../proto/header_checks
292	../mantools/fixman ../proto/postconf.proto $? >junk && \
293	    (cmp -s junk $? || mv junk $?) && rm -f junk
294	../mantools/srctoman - $? >$@
295
296man5/body_checks.5: ../proto/header_checks
297	echo .so man5/header_checks.5 >$@
298
299man5/ldap_table.5: ../proto/ldap_table
300	../mantools/fixman ../proto/postconf.proto $? >junk && \
301	    (cmp -s junk $? || mv junk $?) && rm -f junk
302	../mantools/srctoman - $? >$@
303
304man5/lmdb_table.5: ../proto/lmdb_table
305	../mantools/fixman ../proto/postconf.proto $? >junk && \
306	    (cmp -s junk $? || mv junk $?) && rm -f junk
307	../mantools/srctoman - $? >$@
308
309man5/master.5: ../proto/master
310	../mantools/fixman ../proto/postconf.proto $? >junk && \
311	    (cmp -s junk $? || mv junk $?) && rm -f junk
312	../mantools/srctoman - $? >$@
313
314man5/memcache_table.5: ../proto/memcache_table
315	../mantools/fixman ../proto/postconf.proto $? >junk && \
316	    (cmp -s junk $? || mv junk $?) && rm -f junk
317	../mantools/srctoman - $? >$@
318
319man5/mysql_table.5: ../proto/mysql_table
320	../mantools/fixman ../proto/postconf.proto $? >junk && \
321	    (cmp -s junk $? || mv junk $?) && rm -f junk
322	../mantools/srctoman - $? >$@
323
324man5/socketmap_table.5: ../proto/socketmap_table
325	../mantools/fixman ../proto/postconf.proto $? >junk && \
326	    (cmp -s junk $? || mv junk $?) && rm -f junk
327	../mantools/srctoman - $? >$@
328
329man5/sqlite_table.5: ../proto/sqlite_table
330	../mantools/fixman ../proto/postconf.proto $? >junk && \
331	    (cmp -s junk $? || mv junk $?) && rm -f junk
332	../mantools/srctoman - $? >$@
333
334man5/nisplus_table.5: ../proto/nisplus_table
335	../mantools/fixman ../proto/postconf.proto $? >junk && \
336	    (cmp -s junk $? || mv junk $?) && rm -f junk
337	../mantools/srctoman - $? >$@
338
339man5/pcre_table.5: ../proto/pcre_table
340	../mantools/fixman ../proto/postconf.proto $? >junk && \
341	    (cmp -s junk $? || mv junk $?) && rm -f junk
342	../mantools/srctoman - $? >$@
343
344man5/pgsql_table.5: ../proto/pgsql_table
345	../mantools/fixman ../proto/postconf.proto $? >junk && \
346	    (cmp -s junk $? || mv junk $?) && rm -f junk
347	../mantools/srctoman - $? >$@
348
349man5/regexp_table.5: ../proto/regexp_table
350	../mantools/fixman ../proto/postconf.proto $? >junk && \
351	    (cmp -s junk $? || mv junk $?) && rm -f junk
352	../mantools/srctoman - $? >$@
353
354man5/relocated.5: ../proto/relocated
355	../mantools/fixman ../proto/postconf.proto $? >junk && \
356	    (cmp -s junk $? || mv junk $?) && rm -f junk
357	../mantools/srctoman - $? >$@
358
359man5/transport.5: ../proto/transport
360	../mantools/fixman ../proto/postconf.proto $? >junk && \
361	    (cmp -s junk $? || mv junk $?) && rm -f junk
362	../mantools/srctoman - $? >$@
363
364man5/virtual.5: ../proto/virtual
365	../mantools/fixman ../proto/postconf.proto $? >junk && \
366	    (cmp -s junk $? || mv junk $?) && rm -f junk
367	../mantools/srctoman - $? >$@
368
369man5/postfix-wrapper.5: ../proto/postfix-wrapper
370	../mantools/fixman ../proto/postconf.proto $? >junk && \
371	    (cmp -s junk $? || mv junk $?) && rm -f junk
372	../mantools/srctoman - $? >$@
373
374man1/smtp-sink.1: ../src/smtpstone/smtp-sink.c
375	../mantools/fixman ../proto/postconf.proto $? >junk && \
376	    (cmp -s junk $? || mv junk $?) && rm -f junk
377	../mantools/srctoman $? >$@
378
379man1/smtp-source.1: ../src/smtpstone/smtp-source.c
380	../mantools/fixman ../proto/postconf.proto $? >junk && \
381	    (cmp -s junk $? || mv junk $?) && rm -f junk
382	../mantools/srctoman $? >$@
383
384man1/posttls-finger.1: ../src/posttls-finger/posttls-finger.c
385	../mantools/fixman ../proto/postconf.proto $? >junk && \
386	    (cmp -s junk $? || mv junk $?) && rm -f junk
387	../mantools/srctoman $? >$@
388
389man1/makedefs.1: ../makedefs
390	../mantools/srctoman - $? >$@
391
392man5/tcp_table.5: ../proto/tcp_table
393	../mantools/srctoman - $? >$@
394
395man1/qmqp-sink.1: ../src/smtpstone/qmqp-sink.c
396	../mantools/fixman ../proto/postconf.proto $? >junk && \
397	    (cmp -s junk $? || mv junk $?) && rm -f junk
398	../mantools/srctoman $? >$@
399
400man1/qmqp-source.1: ../src/smtpstone/qmqp-source.c
401	../mantools/fixman ../proto/postconf.proto $? >junk && \
402	    (cmp -s junk $? || mv junk $?) && rm -f junk
403	../mantools/srctoman $? >$@
404
405man1/qshape.1: ../auxiliary/qshape/qshape.pl
406	#../mantools/fixman ../proto/postconf.proto $? >junk && \
407	#    (cmp -s junk $? || mv junk $?) && rm -f junk
408	../mantools/srctoman - $? >$@
409