diff --git a/root/amery/Makefile b/root/amery/Makefile index ccb4298..aca1ec4 100644 --- a/root/amery/Makefile +++ b/root/amery/Makefile @@ -1,48 +1,17 @@ ZONES=$(basename $(wildcard *.zone.in)) -# morfoh -ATLIEN=213.239.204.184 -# karasz -YODA=88.198.9.201 -X5RO=82.77.60.55 -X5MY=202.75.57.3 -# misl -NOISY=multimach.dyndns.org -# amery -MICROLOGIC=68.196.84.126 -CONOSUR=201.238.240.52 -SOCOMEP=216.241.24.10 -AQUEMINI=85.25.10.130 - -# 1&1 -MX01UND1=mx00.kundenserver.de -MX11UND1=mx01.kundenserver.de - -# block templates -NS=$(shell ../template.sh ns ) -GOOGLEMX=$(shell ../template.sh googlemx ) - .PHONY: all clean all: $(ZONES) clean: @rm -f $(ZONES) -%.zone: %.zone.in Makefile $(wildcard ../*.in) +../preprocessor.sed: ../preprocessor.sh $(wildcard ../*.in) + @$^ > $@ + +%.zone: %.zone.in ../preprocessor.sed @echo " [$*] $@.in -> $@" - @sed -e 's,@@NS@@,$(NS),' \ - -e 's,@@GOOGLEMX@@,$(GOOGLEMX),g' \ + @sed -f ../preprocessor.sed \ -e 's,@@DOMAIN@@,$*,g' \ - -e 's,@@ATLIEN@@,$(ATLIEN),g' \ - -e 's,@@YODA@@,$(YODA),g' \ - -e 's,@@X5RO@@,$(X5RO),g' \ - -e 's,@@X5MY@@,$(X5MY),g' \ - -e 's,@@NOISY@@,$(NOISY),g' \ - -e 's,@@MICROLOGIC@@,$(MICROLOGIC),g' \ - -e 's,@@CONOSUR@@,$(CONOSUR),g' \ - -e 's,@@SOCOMEP@@,$(SOCOMEP),g' \ - -e 's,@@AQUEMINI@@,$(AQUEMINI),g' \ - -e 's,@@MX01UND1@@,$(MX01UND1),g' \ - -e 's,@@MX11UND1@@,$(MX11UND1),g' \ $@.in > $@