diff options
author | root <root@cloud.av8n.net> | 2012-07-13 00:52:34 -0700 |
---|---|---|
committer | John Denker <jsd@av8n.com> | 2012-07-13 18:39:52 -0700 |
commit | efec496b39c0b1ba94c79e76c1c573c9b8542ee5 (patch) | |
tree | e6d1a120075220e9c30ee481e710de157bdca971 /tools | |
parent | 1d7eff0ba635ac5983bed820dd349af2ebee0850 (diff) |
smarter about rebuilding tcprules
Diffstat (limited to 'tools')
-rw-r--r-- | tools/makefile | 7 | ||||
-rw-r--r-- | tools/tcprules.make | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/tools/makefile b/tools/makefile index d1c91ae..256fa6e 100644 --- a/tools/makefile +++ b/tools/makefile @@ -28,13 +28,10 @@ install: install qmail-tls-check_certs /var/qmail/bin/ install spamassassin /etc/init.d/ install spamassassin.default /etc/default/spamassassin + install tcprules.make /etc/tcpserver/makefile /etc/tcpserver/smtp.rules : - ./mk_smtp_rules - -tcprules : /etc/tcpserver/smtp.rules - < $< tcprules /etc/tcpserver/smtp.cdb /etc/tcpserver/smtp.tmp - + ./mk_smtp_rules $@ ALWAYS: @echo ... diff --git a/tools/tcprules.make b/tools/tcprules.make new file mode 100644 index 0000000..35cc605 --- /dev/null +++ b/tools/tcprules.make @@ -0,0 +1,4 @@ +PPID := $(shell echo $$$$) + +smtp.cdb : smtp.rules + < $< tcprules $@ /tmp/smtp-$(PPID).tmp |