chiark / gitweb /
Makefile: Make the dummy zones depend on the configuration.
[dnserr] / Makefile
index a9f5e61fe6782f5a8d45e028cdcb970515b969d8..802cd43d23421f144cf6fbc588497da0434c071c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ all:
 DUMMY                   = refused wrong-ds
 DUMMYZONES              = $(addsuffix .zone,$(DUMMY))
 TARGETS                        += $(DUMMYZONES)
-$(DUMMYZONES): %.zone: utils.m4 dummy.in
+$(DUMMYZONES): %.zone: utils.m4 config.m4 dummy.in
        m4 -P -DBASE=$(BASE) >$@.new utils.m4 dummy.in
        mv $@.new $@
 
@@ -75,7 +75,7 @@ dnserr.zone.sig: dnserr.zone.sigold dnserr.zone.signew
                  if (c != tolower(c)) { c = tolower(c); break; } \
                  else if (c != toupper(c)) { c = toupper(c); break; } \
                } \
-               $$13 = substr(s, 1, i) c substr(s, i + 2); \
+               $$13 = substr(s, 1, i - 1) c substr(s, i + 1); \
             } \
             { print; }' \
                dnserr.zone.signew >$@.new
@@ -89,3 +89,5 @@ all: $(TARGETS)
 clean::; rm -f $(CLEAN)
 realclean:: clean; rm -f $(REALCLEAN)
 .PHONY: clean realclean
+
+-include local.mk