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 postmulti
.1.html \
14 postqueue
.1.html postsuper
.1.html sendmail
.1.html \
15 smtp-source
.1.html smtp-sink
.1.html \
16 qmqp-source
.1.html qmqp-sink
.1.html \
18 CONFIG
= access
.5.html aliases
.5.html canonical
.5.html relocated
.5.html \
19 transport
.5.html virtual
.5.html pcre_table
.5.html regexp_table
.5.html \
20 cidr_table
.5.html tcp_table
.5.html header_checks
.5.html \
21 ldap_table
.5.html mysql_table
.5.html pgsql_table
.5.html \
22 master
.5.html nisplus_table
.5.html generic
.5.html bounce
.5.html \
23 postfix-wrapper
.5.html
24 OTHER
= postfix-manuals.html
25 AWK
= awk
'{ print; if (NR == 2) print ".pl 9999\n.ll 65" }'
26 MAN2HTML
= man2html
-t
"Postfix manual - `IFS=.; set \`echo $@\`; echo \"$$1($$2)\"`"
28 update
: $(DAEMONS
) $(COMMANDS
) $(CONFIG
) $(OTHER
)
36 rm -f
$(DAEMONS
) $(COMMANDS
) $(CONFIG
)
38 bounce
.8.html
: ..
/src
/bounce
/bounce.c
39 PATH
=..
/mantools
:$$PATH; \
40 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
42 defer
.8.html
: bounce
.8.html
46 discard
.8.html
: ..
/src
/discard
/discard.c
47 PATH
=..
/mantools
:$$PATH; \
48 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
50 error
.8.html
: ..
/src
/error
/error.c
51 PATH
=..
/mantools
:$$PATH; \
52 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
54 flush
.8.html
: ..
/src
/flush
/flush.c
55 PATH
=..
/mantools
:$$PATH; \
56 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
58 cleanup
.8.html
: ..
/src
/cleanup
/cleanup.c
59 PATH
=..
/mantools
:$$PATH; \
60 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
62 anvil
.8.html
: ..
/src
/anvil
/anvil.c
63 PATH
=..
/mantools
:$$PATH; \
64 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
66 scache
.8.html
: ..
/src
/scache
/scache.c
67 PATH
=..
/mantools
:$$PATH; \
68 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
70 lmtp
.8.html
: smtp
.8.html
74 local
.8.html
: ..
/src
/local
/local.c
75 PATH
=..
/mantools
:$$PATH; \
76 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
78 master
.8.html
: ..
/src
/master
/master.c
79 PATH
=..
/mantools
:$$PATH; \
80 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
82 oqmgr
.8.html
: ..
/src
/oqmgr
/qmgr.c
83 PATH
=..
/mantools
:$$PATH; \
84 srctoman
$? | sed
-e
's/qmgr[^_]/o&/' \
86 -e
's/QMGR[^_]/O&/' | \
87 $(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
89 pickup
.8.html
: ..
/src
/pickup
/pickup.c
90 PATH
=..
/mantools
:$$PATH; \
91 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
93 pipe
.8.html
: ..
/src
/pipe
/pipe.c
94 PATH
=..
/mantools
:$$PATH; \
95 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
97 proxymap
.8.html
: ..
/src
/proxymap
/proxymap.c
98 PATH
=..
/mantools
:$$PATH; \
99 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
101 qmgr
.8.html
: ..
/src
/qmgr
/qmgr.c
102 PATH
=..
/mantools
:$$PATH; \
103 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
105 qmqpd
.8.html
: ..
/src
/qmqpd
/qmqpd.c
106 PATH
=..
/mantools
:$$PATH; \
107 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
109 showq
.8.html
: ..
/src
/showq
/showq.c
110 PATH
=..
/mantools
:$$PATH; \
111 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
113 spawn
.8.html
: ..
/src
/spawn
/spawn.c
114 PATH
=..
/mantools
:$$PATH; \
115 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
117 smtp
.8.html
: ..
/src
/smtp
/smtp.c
118 PATH
=..
/mantools
:$$PATH; \
119 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
121 smtpd
.8.html
: ..
/src
/smtpd
/smtpd.c
122 PATH
=..
/mantools
:$$PATH; \
123 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
125 virtual
.8.html
: ..
/src
/virtual
/virtual.c
126 PATH
=..
/mantools
:$$PATH; \
127 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
129 tlsmgr
.8.html
: ..
/src
/tlsmgr
/tlsmgr.c
130 PATH
=..
/mantools
:$$PATH; \
131 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
133 trace
.8.html
: bounce
.8.html
137 trivial-rewrite
.8.html
: ..
/src
/trivial-rewrite
/trivial-rewrite.c
138 PATH
=..
/mantools
:$$PATH; \
139 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
141 verify
.8.html
: ..
/src
/verify
/verify.c
142 PATH
=..
/mantools
:$$PATH; \
143 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
145 postalias
.1.html
: ..
/src
/postalias
/postalias.c
146 PATH
=..
/mantools
:$$PATH; \
147 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
149 postcat
.1.html
: ..
/src
/postcat
/postcat.c
150 PATH
=..
/mantools
:$$PATH; \
151 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
153 postconf
.1.html
: ..
/src
/postconf
/postconf.c
154 PATH
=..
/mantools
:$$PATH; \
155 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
157 postdrop
.1.html
: ..
/src
/postdrop
/postdrop.c
158 PATH
=..
/mantools
:$$PATH; \
159 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
161 postfix
.1.html
: ..
/src
/postfix
/postfix.c
162 PATH
=..
/mantools
:$$PATH; \
163 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
165 postkick
.1.html
: ..
/src
/postkick
/postkick.c
166 PATH
=..
/mantools
:$$PATH; \
167 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
169 postlock
.1.html
: ..
/src
/postlock
/postlock.c
170 PATH
=..
/mantools
:$$PATH; \
171 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
173 postlog
.1.html
: ..
/src
/postlog
/postlog.c
174 PATH
=..
/mantools
:$$PATH; \
175 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
177 postmap
.1.html
: ..
/src
/postmap
/postmap.c
178 PATH
=..
/mantools
:$$PATH; \
179 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
181 postmulti
.1.html
: ..
/src
/postmulti
/postmulti.c
182 PATH
=..
/mantools
:$$PATH; \
183 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
185 postqueue
.1.html
: ..
/src
/postqueue
/postqueue.c
186 PATH
=..
/mantools
:$$PATH; \
187 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
189 postsuper
.1.html
: ..
/src
/postsuper
/postsuper.c
190 PATH
=..
/mantools
:$$PATH; \
191 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
193 sendmail
.1.html
: ..
/src
/sendmail
/sendmail.c
194 PATH
=..
/mantools
:$$PATH; \
195 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
197 mailq
.1.html
: sendmail
.1.html
201 newaliases
.1.html
: sendmail
.1.html
202 PATH
=..
/mantools
:$$PATH; \
206 smtp-source
.1.html
: ..
/src
/smtpstone
/smtp-source.c
207 PATH
=..
/mantools
:$$PATH; \
208 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
210 smtp-sink
.1.html
: ..
/src
/smtpstone
/smtp-sink.c
211 PATH
=..
/mantools
:$$PATH; \
212 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
214 qmqp-source
.1.html
: ..
/src
/smtpstone
/qmqp-source.c
215 PATH
=..
/mantools
:$$PATH; \
216 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
218 qmqp-sink
.1.html
: ..
/src
/smtpstone
/qmqp-sink.c
219 PATH
=..
/mantools
:$$PATH; \
220 srctoman
$? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
222 qshape
.1.html
: ..
/auxiliary
/qshape
/qshape.pl
223 PATH
=..
/mantools
:$$PATH; \
224 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
226 access
.5.html
: ..
/proto
/access
227 PATH
=..
/mantools
:$$PATH; \
228 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
230 aliases
.5.html
: ..
/proto
/aliases
231 PATH
=..
/mantools
:$$PATH; \
232 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
234 bounce
.5.html
: ..
/proto
/bounce
235 PATH
=..
/mantools
:$$PATH; \
236 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
238 canonical
.5.html
: ..
/proto
/canonical
239 PATH
=..
/mantools
:$$PATH; \
240 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
242 cidr_table
.5.html
: ..
/proto
/cidr_table
243 PATH
=..
/mantools
:$$PATH; \
244 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
246 header_checks
.5.html
: ..
/proto
/header_checks
247 PATH
=..
/mantools
:$$PATH; \
248 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
250 generic
.5.html
: ..
/proto
/generic
251 PATH
=..
/mantools
:$$PATH; \
252 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
254 ldap_table
.5.html
: ..
/proto
/ldap_table
255 PATH
=..
/mantools
:$$PATH; \
256 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
258 master
.5.html
: ..
/proto
/master
259 PATH
=..
/mantools
:$$PATH; \
260 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
262 mysql_table
.5.html
: ..
/proto
/mysql_table
263 PATH
=..
/mantools
:$$PATH; \
264 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
266 nisplus_table
.5.html
: ..
/proto
/nisplus_table
267 PATH
=..
/mantools
:$$PATH; \
268 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
270 pcre_table
.5.html
: ..
/proto
/pcre_table
271 PATH
=..
/mantools
:$$PATH; \
272 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
274 pgsql_table
.5.html
: ..
/proto
/pgsql_table
275 PATH
=..
/mantools
:$$PATH; \
276 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
278 regexp_table
.5.html
: ..
/proto
/regexp_table
279 PATH
=..
/mantools
:$$PATH; \
280 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
282 relocated
.5.html
: ..
/proto
/relocated
283 PATH
=..
/mantools
:$$PATH; \
284 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
286 tcp_table
.5.html
: ..
/proto
/tcp_table
287 PATH
=..
/mantools
:$$PATH; \
288 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
290 transport
.5.html
: ..
/proto
/transport
291 PATH
=..
/mantools
:$$PATH; \
292 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
294 virtual
.5.html
: ..
/proto
/virtual
295 PATH
=..
/mantools
:$$PATH; \
296 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
298 postfix-wrapper
.5.html
: ..
/proto
/postfix-wrapper
299 PATH
=..
/mantools
:$$PATH; \
300 srctoman
- $? |
$(AWK
) | nroff
-man | uniq |
$(MAN2HTML
) | postlink
>$@
302 postfix-manuals.html
: ..
/src
/postfix
/postfix.c ..
/mantools
/makemanidx
303 PATH
=..
/mantools
:$$PATH; \
304 makemanidx ..
/src
/postfix
/postfix.c | postlink
>$@