3 # For now, just hard-coded rules for daemons, commands, config files.
5 DAEMONS
= bounce
.8.html cleanup
.8.html defer
.8.html error
.8.html local
.8.html \
6 lmtp
.8.html master
.8.html pickup
.8.html pipe
.8.html qmgr
.8.html \
7 showq
.8.html smtp
.8.html smtpd
.8.html trivial-rewrite
.8.html \
8 oqmgr
.8.html spawn
.8.html flush
.8.html virtual
.8.html qmqpd
.8.html \
9 trace
.8.html verify
.8.html proxymap
.8.html anvil
.8.html \
10 scache
.8.html discard
.8.html tlsmgr
.8.html
11 COMMANDS
= mailq
.1.html newaliases
.1.html postalias
.1.html postcat
.1.html \
12 postconf
.1.html postfix
.1.html postkick
.1.html postlock
.1.html \
13 postlog
.1.html postdrop
.1.html postmap
.1.html sendmail
.1.html \
14 postqueue
.1.html postsuper
.1.html smtp-source
.1.html \
15 smtp-sink
.1.html qmqp-source
.1.html qmqp-sink
.1.html \
17 CONFIG
= access
.5.html aliases
.5.html canonical
.5.html relocated
.5.html \
18 transport
.5.html virtual
.5.html pcre_table
.5.html regexp_table
.5.html \
19 cidr_table
.5.html tcp_table
.5.html header_checks
.5.html \
20 ldap_table
.5.html mysql_table
.5.html pgsql_table
.5.html \
21 master
.5.html nisplus_table
.5.html generic
.5.html
22 OTHER
= postfix-manuals.html
23 AWK
= awk
'{ print; if (NR == 2) print ".pl 9999\n.ll 65" }'
24 MAN2HTML
= man2html
-t
"Postfix manual - `IFS=.; set \`echo $@\`; echo \"$$1($$2)\"`"
26 update
: $(DAEMONS
) $(COMMANDS
) $(CONFIG
) $(OTHER
)
29 (set
-e
; echo
"# DO NOT EDIT"; $(OPTS
) $(SHELL
) ..
/src
/makedefs
; cat
$?
) >$@
37 rm -f
$(DAEMONS
) $(COMMANDS
) $(CONFIG
)
39 bounce
.8.html
: ..
/src
/bounce
/bounce.c
40 PATH
=..
/mantools
:$$PATH; \
41 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
43 defer
.8.html
: bounce
.8.html
47 discard
.8.html
: ..
/src
/discard
/discard.c
48 PATH
=..
/mantools
:$$PATH; \
49 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
51 error
.8.html
: ..
/src
/error
/error.c
52 PATH
=..
/mantools
:$$PATH; \
53 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
55 flush
.8.html
: ..
/src
/flush
/flush.c
56 PATH
=..
/mantools
:$$PATH; \
57 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
59 cleanup
.8.html
: ..
/src
/cleanup
/cleanup.c
60 PATH
=..
/mantools
:$$PATH; \
61 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
63 anvil
.8.html
: ..
/src
/anvil
/anvil.c
64 PATH
=..
/mantools
:$$PATH; \
65 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
67 scache
.8.html
: ..
/src
/scache
/scache.c
68 PATH
=..
/mantools
:$$PATH; \
69 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
71 lmtp
.8.html
: ..
/src
/lmtp
/lmtp.c
72 PATH
=..
/mantools
:$$PATH; \
73 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
75 local
.8.html
: ..
/src
/local
/local.c
76 PATH
=..
/mantools
:$$PATH; \
77 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
79 master
.8.html
: ..
/src
/master
/master.c
80 PATH
=..
/mantools
:$$PATH; \
81 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
83 oqmgr
.8.html
: ..
/src
/oqmgr
/qmgr.c
84 PATH
=..
/mantools
:$$PATH; \
85 srctoman
$? | sed
-e
's/qmgr[^_]/o&/' \
87 -e
's/QMGR[^_]/O&/' | \
88 $(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
90 pickup
.8.html
: ..
/src
/pickup
/pickup.c
91 PATH
=..
/mantools
:$$PATH; \
92 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
94 pipe
.8.html
: ..
/src
/pipe
/pipe.c
95 PATH
=..
/mantools
:$$PATH; \
96 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
98 proxymap
.8.html
: ..
/src
/proxymap
/proxymap.c
99 PATH
=..
/mantools
:$$PATH; \
100 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
102 qmgr
.8.html
: ..
/src
/qmgr
/qmgr.c
103 PATH
=..
/mantools
:$$PATH; \
104 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
106 qmqpd
.8.html
: ..
/src
/qmqpd
/qmqpd.c
107 PATH
=..
/mantools
:$$PATH; \
108 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
110 showq
.8.html
: ..
/src
/showq
/showq.c
111 PATH
=..
/mantools
:$$PATH; \
112 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
114 spawn
.8.html
: ..
/src
/spawn
/spawn.c
115 PATH
=..
/mantools
:$$PATH; \
116 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
118 smtp
.8.html
: ..
/src
/smtp
/smtp.c
119 PATH
=..
/mantools
:$$PATH; \
120 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
122 smtpd
.8.html
: ..
/src
/smtpd
/smtpd.c
123 PATH
=..
/mantools
:$$PATH; \
124 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
126 virtual
.8.html
: ..
/src
/virtual
/virtual.c
127 PATH
=..
/mantools
:$$PATH; \
128 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
130 tlsmgr
.8.html
: ..
/src
/tlsmgr
/tlsmgr.c
131 PATH
=..
/mantools
:$$PATH; \
132 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
134 trace
.8.html
: bounce
.8.html
138 trivial-rewrite
.8.html
: ..
/src
/trivial-rewrite
/trivial-rewrite.c
139 PATH
=..
/mantools
:$$PATH; \
140 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
142 verify
.8.html
: ..
/src
/verify
/verify.c
143 PATH
=..
/mantools
:$$PATH; \
144 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
146 postalias
.1.html
: ..
/src
/postalias
/postalias.c
147 PATH
=..
/mantools
:$$PATH; \
148 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
150 postcat
.1.html
: ..
/src
/postcat
/postcat.c
151 PATH
=..
/mantools
:$$PATH; \
152 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
154 postconf
.1.html
: ..
/src
/postconf
/postconf.c
155 PATH
=..
/mantools
:$$PATH; \
156 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
158 postdrop
.1.html
: ..
/src
/postdrop
/postdrop.c
159 PATH
=..
/mantools
:$$PATH; \
160 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
162 postfix
.1.html
: ..
/src
/postfix
/postfix.c
163 PATH
=..
/mantools
:$$PATH; \
164 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
166 postkick
.1.html
: ..
/src
/postkick
/postkick.c
167 PATH
=..
/mantools
:$$PATH; \
168 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
170 postlock
.1.html
: ..
/src
/postlock
/postlock.c
171 PATH
=..
/mantools
:$$PATH; \
172 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
174 postlog
.1.html
: ..
/src
/postlog
/postlog.c
175 PATH
=..
/mantools
:$$PATH; \
176 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
178 postmap
.1.html
: ..
/src
/postmap
/postmap.c
179 PATH
=..
/mantools
:$$PATH; \
180 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
182 postqueue
.1.html
: ..
/src
/postqueue
/postqueue.c
183 PATH
=..
/mantools
:$$PATH; \
184 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
186 postsuper
.1.html
: ..
/src
/postsuper
/postsuper.c
187 PATH
=..
/mantools
:$$PATH; \
188 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
190 sendmail
.1.html
: ..
/src
/sendmail
/sendmail.c
191 PATH
=..
/mantools
:$$PATH; \
192 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
194 mailq
.1.html
: sendmail
.1.html
195 PATH
=..
/mantools
:$$PATH; \
199 newaliases
.1.html
: sendmail
.1.html
200 PATH
=..
/mantools
:$$PATH; \
204 smtp-source
.1.html
: ..
/src
/smtpstone
/smtp-source.c
205 PATH
=..
/mantools
:$$PATH; \
206 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
208 smtp-sink
.1.html
: ..
/src
/smtpstone
/smtp-sink.c
209 PATH
=..
/mantools
:$$PATH; \
210 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
212 qmqp-source
.1.html
: ..
/src
/smtpstone
/qmqp-source.c
213 PATH
=..
/mantools
:$$PATH; \
214 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
216 qmqp-sink
.1.html
: ..
/src
/smtpstone
/qmqp-sink.c
217 PATH
=..
/mantools
:$$PATH; \
218 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
220 qshape
.1.html
: ..
/auxiliary
/qshape
/qshape.pl
221 PATH
=..
/mantools
:$$PATH; \
222 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
224 access
.5.html
: ..
/proto
/access
225 PATH
=..
/mantools
:$$PATH; \
226 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
228 aliases
.5.html
: ..
/proto
/aliases
229 PATH
=..
/mantools
:$$PATH; \
230 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
232 canonical
.5.html
: ..
/proto
/canonical
233 PATH
=..
/mantools
:$$PATH; \
234 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
236 cidr_table
.5.html
: ..
/proto
/cidr_table
237 PATH
=..
/mantools
:$$PATH; \
238 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
240 header_checks
.5.html
: ..
/proto
/header_checks
241 PATH
=..
/mantools
:$$PATH; \
242 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
244 generic
.5.html
: ..
/proto
/generic
245 PATH
=..
/mantools
:$$PATH; \
246 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
248 ldap_table
.5.html
: ..
/proto
/ldap_table
249 PATH
=..
/mantools
:$$PATH; \
250 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
252 master
.5.html
: ..
/proto
/master
253 PATH
=..
/mantools
:$$PATH; \
254 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
256 mysql_table
.5.html
: ..
/proto
/mysql_table
257 PATH
=..
/mantools
:$$PATH; \
258 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
260 nisplus_table
.5.html
: ..
/proto
/nisplus_table
261 PATH
=..
/mantools
:$$PATH; \
262 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
264 pcre_table
.5.html
: ..
/proto
/pcre_table
265 PATH
=..
/mantools
:$$PATH; \
266 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
268 pgsql_table
.5.html
: ..
/proto
/pgsql_table
269 PATH
=..
/mantools
:$$PATH; \
270 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
272 regexp_table
.5.html
: ..
/proto
/regexp_table
273 PATH
=..
/mantools
:$$PATH; \
274 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
276 relocated
.5.html
: ..
/proto
/relocated
277 PATH
=..
/mantools
:$$PATH; \
278 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
280 tcp_table
.5.html
: ..
/proto
/tcp_table
281 PATH
=..
/mantools
:$$PATH; \
282 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
284 transport
.5.html
: ..
/proto
/transport
285 PATH
=..
/mantools
:$$PATH; \
286 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
288 virtual
.5.html
: ..
/proto
/virtual
289 PATH
=..
/mantools
:$$PATH; \
290 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
292 postfix-manuals.html
: ..
/src
/postfix
/postfix.c ..
/mantools
/makemanidx
293 PATH
=..
/mantools
:$$PATH; \
294 makemanidx ..
/src
/postfix
/postfix.c | postlink
>$@