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