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.
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: %
|
2022-02-08 23:23:17 +01:00
|
|
|
gpg $(GPG_FLAGS) -o $@ --batch --yes --detach-sign $<
|
2021-04-13 07:58:31 +02:00
|
|
|
|
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:
|
2021-11-08 09:23:11 +01:00
|
|
|
printf 'put %s\n' *.zone *.sig | sftp ns0.it-syndikat.org:zones/
|
2021-04-13 07:58:31 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.sig
|
2021-04-16 07:57:09 +02:00
|
|
|
|
|
|
|
FORCE:
|
|
|
|
.PHONY: FORCE
|
2022-02-08 23:23:17 +01:00
|
|
|
|
|
|
|
-include local.mk
|