rndc gives textual and exit-code feedback, use it
authorRalf Jung <post@ralfj.de>
Thu, 1 Jan 2015 13:34:42 +0000 (14:34 +0100)
committerRalf Jung <post@ralfj.de>
Thu, 1 Jan 2015 13:34:42 +0000 (14:34 +0100)
Makefile.sample

index c2d05c713c82d8f3c990cb4652702fe69f1b3094..3af6904f03b5883cb5de24e82226991a2c1bf5da 100644 (file)
@@ -1,4 +1,7 @@
+all: db.example.com
+
 db.example.com: db.example.com.py
        @sudo -u user ~user/zonemaker/zone-maker $< > $@ || rm -f $@
        @cat $@
 db.example.com: db.example.com.py
        @sudo -u user ~user/zonemaker/zone-maker $< > $@ || rm -f $@
        @cat $@
-       @rndc reload example.com
+       @echo
+       @rndc reload example.com || rm -f $@