+# edit list of zones and other configuration here
+zones := example.com
+user := user
+zonemaker := ~user/zonemaker/zonemaker
+
+# heres comes the magic
+zonefiles = $(addprefix db.,${zones})
+all: ${zonefiles}
+.PHONY: all
+
+db.%: db.%.py
+ @echo $* $< $@
+ @sudo -u ${user} ${zonemaker} $< > $@ || rm -f $@