From a918bbc6d7596335a17e44e741acfe5ed65ce732 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Wed, 1 Sep 2021 11:50:45 +0100 Subject: [PATCH] protocol/Makefile: add `discard` target, and make the `linkcheck` target depend on `all-specs`. Signed-off-by: Daira Hopwood --- protocol/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/protocol/Makefile b/protocol/Makefile index 9ba78e94..ce1def10 100644 --- a/protocol/Makefile +++ b/protocol/Makefile @@ -16,7 +16,7 @@ NOCRUFT?=|perl -pe 's|[{\<\(]\/[^ ]* ?||g;s|^.* has been referenced but does not # Use EXTRAOPT=-pvc for "continuous preview" mode. For example, "make auxblossom EXTRAOPT=-pvc". # In this case the updated .pdf will be in the aux/ directory. -.PHONY: all all-specs release +.PHONY: all all-specs release discard all: .Makefile.uptodate $(MAKE) nu5 canopy heartwood blossom sapling @@ -36,8 +36,11 @@ else git push --tags origin HEAD:master endif +discard: + git checkout -- '*.pdf' + .PHONY: linkcheck -linkcheck: +linkcheck: protocol.pdf canopy.pdf heartwood.pdf blossom.pdf sapling.pdf ./links_and_dests.py --check protocol.pdf canopy.pdf heartwood.pdf blossom.pdf sapling.pdf .Makefile.uptodate: Makefile