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
10 COMMANDS= mailq.1.html newaliases.1.html postalias.1.html postcat.1.html \
11 postconf.1.html postfix.1.html postkick.1.html postlock.1.html \
12 postlog.1.html postdrop.1.html postmap.1.html sendmail.1.html \
13 postqueue.1.html postsuper.1.html smtp-source.1.html \
14 smtp-sink.1.html qmqp-source.1.html qmqp-sink.1.html
15 CONFIG = access.5.html aliases.5.html canonical.5.html relocated.5.html \
16 transport.5.html virtual.5.html pcre_table.5.html regexp_table.5.html \
17 cidr_table.5.html header_checks.5.html \
18 ldap_table.5.html mysql_table.5.html pgsql_table.5.html
19 AWK = awk '{ print; if (NR == 1) print ".pl 9999" }'
20 MAN2HTML = man2html -t "Postfix manual - `IFS=.; set \`echo $@\`; echo \"$$1($$2)\"`"
22 update: $(DAEMONS) $(COMMANDS) $(CONFIG)
25 (set -e; echo "# DO NOT EDIT"; $(OPTS) $(SHELL) ../src/makedefs; cat $?) >$@
33 rm -f $(DAEMONS) $(COMMANDS) $(CONFIG)
35 bounce.8.html: ../src/bounce/bounce.c
36 PATH=../mantools:$$PATH; \
37 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
39 defer.8.html: bounce.8.html
43 error.8.html: ../src/error/error.c
44 PATH=../mantools:$$PATH; \
45 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
47 flush.8.html: ../src/flush/flush.c
48 PATH=../mantools:$$PATH; \
49 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
51 cleanup.8.html: ../src/cleanup/cleanup.c
52 PATH=../mantools:$$PATH; \
53 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
55 anvil.8.html: ../src/anvil/anvil.c
56 PATH=../mantools:$$PATH; \
57 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
59 lmtp.8.html: ../src/lmtp/lmtp.c
60 PATH=../mantools:$$PATH; \
61 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
63 local.8.html: ../src/local/local.c
64 PATH=../mantools:$$PATH; \
65 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
67 master.8.html: ../src/master/master.c
68 PATH=../mantools:$$PATH; \
69 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
71 oqmgr.8.html: ../src/oqmgr/qmgr.c
72 PATH=../mantools:$$PATH; \
73 srctoman $? | sed -e 's/qmgr[^_]/o&/' \
75 -e 's/QMGR[^_]/O&/' | \
76 $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
78 pickup.8.html: ../src/pickup/pickup.c
79 PATH=../mantools:$$PATH; \
80 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
82 pipe.8.html: ../src/pipe/pipe.c
83 PATH=../mantools:$$PATH; \
84 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
86 proxymap.8.html: ../src/proxymap/proxymap.c
87 PATH=../mantools:$$PATH; \
88 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
90 qmgr.8.html: ../src/qmgr/qmgr.c
91 PATH=../mantools:$$PATH; \
92 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
94 qmqpd.8.html: ../src/qmqpd/qmqpd.c
95 PATH=../mantools:$$PATH; \
96 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
98 showq.8.html: ../src/showq/showq.c
99 PATH=../mantools:$$PATH; \
100 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
102 spawn.8.html: ../src/spawn/spawn.c
103 PATH=../mantools:$$PATH; \
104 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
106 smtp.8.html: ../src/smtp/smtp.c
107 PATH=../mantools:$$PATH; \
108 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
110 smtpd.8.html: ../src/smtpd/smtpd.c
111 PATH=../mantools:$$PATH; \
112 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
114 virtual.8.html: ../src/virtual/virtual.c
115 PATH=../mantools:$$PATH; \
116 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
118 trace.8.html: bounce.8.html
122 trivial-rewrite.8.html: ../src/trivial-rewrite/trivial-rewrite.c
123 PATH=../mantools:$$PATH; \
124 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
126 verify.8.html: ../src/verify/verify.c
127 PATH=../mantools:$$PATH; \
128 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
130 postalias.1.html: ../src/postalias/postalias.c
131 PATH=../mantools:$$PATH; \
132 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
134 postcat.1.html: ../src/postcat/postcat.c
135 PATH=../mantools:$$PATH; \
136 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
138 postconf.1.html: ../src/postconf/postconf.c
139 PATH=../mantools:$$PATH; \
140 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
142 postdrop.1.html: ../src/postdrop/postdrop.c
143 PATH=../mantools:$$PATH; \
144 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
146 postfix.1.html: ../src/postfix/postfix.c
147 PATH=../mantools:$$PATH; \
148 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
150 postkick.1.html: ../src/postkick/postkick.c
151 PATH=../mantools:$$PATH; \
152 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
154 postlock.1.html: ../src/postlock/postlock.c
155 PATH=../mantools:$$PATH; \
156 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
158 postlog.1.html: ../src/postlog/postlog.c
159 PATH=../mantools:$$PATH; \
160 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
162 postmap.1.html: ../src/postmap/postmap.c
163 PATH=../mantools:$$PATH; \
164 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
166 postqueue.1.html: ../src/postqueue/postqueue.c
167 PATH=../mantools:$$PATH; \
168 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
170 postsuper.1.html: ../src/postsuper/postsuper.c
171 PATH=../mantools:$$PATH; \
172 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
174 sendmail.1.html: ../src/sendmail/sendmail.c
175 PATH=../mantools:$$PATH; \
176 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
178 mailq.1.html: sendmail.1.html
179 PATH=../mantools:$$PATH; \
183 newaliases.1.html: sendmail.1.html
184 PATH=../mantools:$$PATH; \
188 smtp-source.1.html: ../src/smtpstone/smtp-source.c
189 PATH=../mantools:$$PATH; \
190 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
192 smtp-sink.1.html: ../src/smtpstone/smtp-sink.c
193 PATH=../mantools:$$PATH; \
194 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
196 qmqp-source.1.html: ../src/smtpstone/qmqp-source.c
197 PATH=../mantools:$$PATH; \
198 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
200 qmqp-sink.1.html: ../src/smtpstone/qmqp-sink.c
201 PATH=../mantools:$$PATH; \
202 srctoman $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
204 access.5.html: ../proto/access
205 PATH=../mantools:$$PATH; \
206 srctoman - $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
208 aliases.5.html: ../proto/aliases
209 PATH=../mantools:$$PATH; \
210 srctoman - $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
212 canonical.5.html: ../proto/canonical
213 PATH=../mantools:$$PATH; \
214 srctoman - $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
216 cidr_table.5.html: ../proto/cidr_table
217 PATH=../mantools:$$PATH; \
218 srctoman - $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
220 header_checks.5.html: ../proto/header_checks
221 PATH=../mantools:$$PATH; \
222 srctoman - $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
224 ldap_table.5.html: ../proto/ldap_table
225 PATH=../mantools:$$PATH; \
226 srctoman - $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
228 mysql_table.5.html: ../proto/mysql_table
229 PATH=../mantools:$$PATH; \
230 srctoman - $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
232 pcre_table.5.html: ../proto/pcre_table
233 PATH=../mantools:$$PATH; \
234 srctoman - $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
236 pgsql_table.5.html: ../proto/pgsql_table
237 PATH=../mantools:$$PATH; \
238 srctoman - $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
240 regexp_table.5.html: ../proto/regexp_table
241 PATH=../mantools:$$PATH; \
242 srctoman - $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
244 relocated.5.html: ../proto/relocated
245 PATH=../mantools:$$PATH; \
246 srctoman - $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
248 tcp_table.5.html: ../proto/tcp_table
249 PATH=../mantools:$$PATH; \
250 srctoman - $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
252 transport.5.html: ../proto/transport
253 PATH=../mantools:$$PATH; \
254 srctoman - $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@
256 virtual.5.html: ../proto/virtual
257 PATH=../mantools:$$PATH; \
258 srctoman - $? | $(AWK) | nroff -man | uniq | $(MAN2HTML) | postlink >$@