21 lines
591 B
Makefile
21 lines
591 B
Makefile
|
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
|