summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorroot <root@cloud.av8n.net>2012-07-13 07:52:34 (GMT)
committerJohn Denker <jsd@av8n.com>2012-07-14 01:39:52 (GMT)
commitefec496b39c0b1ba94c79e76c1c573c9b8542ee5 (patch)
treee6d1a120075220e9c30ee481e710de157bdca971 /tools
parent1d7eff0ba635ac5983bed820dd349af2ebee0850 (diff)
smarter about rebuilding tcprules
Diffstat (limited to 'tools')
-rw-r--r--tools/makefile7
-rw-r--r--tools/tcprules.make4
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