.SUFFIXES: .zone .soa .inc ZONESDIR=? # change the list of SOA files into a list of ZONE files # by replacing the `.soa' suffix with `.zone' zones = $(patsubst %.soa,%.zone,$(wildcard $(ZONESDIR)/*.soa)) all: $(zones) rndc reload # For NSD # nsdc rebuild # nsdc reload %.zone: %.soa %.rr ./fixserial.pl $(basename $@).soa > $(basename $@).soa.fix && mv $(basename $@).soa.fix $(basename $@).soa touch $@