28 lines
557 B
Makefile
28 lines
557 B
Makefile
check: $(patsubst %.zone,%.check,$(wildcard *.zone))
|
|
|
|
%.check: %.zone FORCE
|
|
ldns-read-zone $<
|
|
|
|
sign: $(patsubst %,%.sig,$(wildcard *.zone))
|
|
|
|
%.sig: %
|
|
gpg $(GPG_FLAGS) -o $@ --batch --yes --detach-sign $<
|
|
|
|
.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}'
|
|
|
|
upload:
|
|
printf 'put %s\n' *.zone *.sig | \
|
|
sftp $(SFTP_FLAGS) zones@ns0.it-syndikat.org:zones/
|
|
|
|
clean:
|
|
rm -f *.sig
|
|
|
|
FORCE:
|
|
.PHONY: FORCE
|
|
|
|
-include local.mk
|