add support for generating TLSA records directly from a certificate file
[zonemaker.git] / Makefile.sample
1 # edit list of zones and other configuration here
2 zones     := example.com
3 user      := user
4 zonemaker := ~user/zonemaker/zonemaker
5
6 # heres comes the magic
7 zonefiles = $(addprefix db.,${zones})
8 all: ${zonefiles}
9 .PHONY: all
10
11 db.%: db.%.py
12         @echo $* $< $@
13         @sudo -u ${user} ${zonemaker} $< > $@ || rm -f $@
14         @cat $@
15         @echo
16         @rndc reload $* # this only returns errors if the zone had not previously been loaded :-/
17         @sleep 1
18         @fgrep 'zone '$*'/IN' /var/log/syslog | tail -n 5