makefiles/dnsmanagerd.mk

21 lines
591 B
Makefile
Raw Normal View History

tdir=$(DIR_DNSMANAGER)/templates/
a=example.com
b=netlib.re
c=codelib.re
build-template-zones:
[ ! -f $(tdir)$(a).json ] &&\
cd $(DIR_DNSMANAGER) &&\
make zone-basic-template-file DOMAIN=$(a) &&\
mv $(a).json templates/ || :
[ ! -f $(tdir)$(b).json ] &&\
cd $(DIR_DNSMANAGER) &&\
make zone-basic-template-file DOMAIN=$(b) &&\
mv $(b).json templates/ || :
[ ! -f $(tdir)$(c).json ] &&\
cd $(DIR_DNSMANAGER) &&\
make zone-basic-template-file DOMAIN=$(c) &&\
mv $(c).json templates/ || :
run-dnsmanagerd: build-template-zones
cd $(DIR_DNSMANAGER) && make run-dnsmanagerd