Only compile when needed.
This commit is contained in:
parent
2a48880e47
commit
cf99e73177
13
Makefile
13
Makefile
@ -18,10 +18,15 @@ Q ?= @
|
|||||||
####################
|
####################
|
||||||
|
|
||||||
DOMAIN ?= example.com
|
DOMAIN ?= example.com
|
||||||
zone-file:
|
build-write-zone-file: tools/write-zone-file.cr
|
||||||
crystal run ./tools/write-zone-file.cr -- $(DOMAIN)
|
$(Q)-([ ! -f bin/write-zone-file ] || [ tools/write-zone-file.cr -nt bin/write-zone-file ]) && shards build write-zone-file
|
||||||
zone-basic-template-file:
|
zone-file: build-write-zone-file
|
||||||
crystal run ./tools/write-template-zone-file.cr -- $(DOMAIN)
|
$(Q)./bin/write-zone-file $(DOMAIN)
|
||||||
|
|
||||||
|
build-write-template-zone-file: tools/write-template-zone-file.cr
|
||||||
|
$(Q)-([ ! -f bin/write-template-zone-file ] || [ tools/write-template-zone-file.cr -nt bin/write-template-zone-file ]) && shards build write-template-zone-file
|
||||||
|
zone-basic-template-file: build-write-template-zone-file
|
||||||
|
$(Q)./bin/write-template-zone-file $(DOMAIN)
|
||||||
|
|
||||||
VERBOSITY ?= 4
|
VERBOSITY ?= 4
|
||||||
run-client-verbosity:
|
run-client-verbosity:
|
||||||
|
@ -26,5 +26,9 @@ targets:
|
|||||||
main: src/main.cr
|
main: src/main.cr
|
||||||
dnsmanager-client:
|
dnsmanager-client:
|
||||||
main: src/client/main.cr
|
main: src/client/main.cr
|
||||||
|
write-zone-file:
|
||||||
|
main: tools/write-zone-file.cr
|
||||||
|
write-template-zone-file:
|
||||||
|
main: tools/write-template-zone-file.cr
|
||||||
|
|
||||||
license: ISC
|
license: ISC
|
||||||
|
Loading…
Reference in New Issue
Block a user