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