This repository has been archived on 2024-02-16. You can view files and clone it, but cannot push or open issues or pull requests.
its-zones/Makefile

26 lines
495 B
Makefile
Raw Normal View History

2021-04-16 07:57:09 +02:00
check: $(patsubst %.zone,%.check,$(wildcard *.zone))
%.check: %.zone FORCE
ldns-read-zone $<
2021-04-13 07:58:31 +02:00
sign: $(patsubst %,%.sig,$(wildcard *.zone))
%.sig: %
gpg -o $@ --detach-sign $<
2021-05-01 19:13:35 +02:00
.PHONY: check-clean
check-clean:
[ ! -e .git ] || git diff-index --exit-code HEAD
[ ! -e .git ] || \
git ls-files --other --directory --exclude-standard | \
sed -n '/.*\.zone/{p;q1}'
2021-04-13 07:58:31 +02:00
upload:
printf 'put %s\n' *.zone *.sig | sftp dns.parabox.it-syndikat.org:zones/
clean:
rm -f *.sig
2021-04-16 07:57:09 +02:00
FORCE:
.PHONY: FORCE