protocol/Makefile: add `discard` target, and make the `linkcheck` target depend on `all-specs`.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2021-09-01 11:50:45 +01:00
parent 0d2b01e602
commit a918bbc6d7
1 changed files with 5 additions and 2 deletions

View File

@ -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