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