From 9f8344d54eb4e36cae131eea8a172e70bf7ef9a8 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 16 Feb 2024 11:51:28 -0800 Subject: Makefile: make validate-epub check v2 output too. See #9469. --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 34ebe2661..6a0f2b59b 100644 --- a/Makefile +++ b/Makefile @@ -255,10 +255,13 @@ validate-epub: ## generate an epub and validate it with epubcheck and ace which epubcheck || exit 1 which ace || exit 1 tmp=$$(mktemp -d) && \ - $(pandoc) test/epub/wasteland.native -Mtitle="The Wasteland" --resource-path test/epub -o $$tmp/file.epub --number-sections --toc --quiet && \ - echo $$tmp/file.epub && \ - epubcheck $$tmp/file.epub && \ - ace $$tmp/file.epub -o ace --force + for epubver in 2 3; do \ + file=$$tmp/ver$$epubver.epub ; \ + $(pandoc) test/epub/wasteland.native -Mtitle="The Wasteland" --resource-path test/epub -t epub$$epubver -o $$file --number-sections --toc --quiet && \ + echo $$file && \ + epubcheck $$file || exit 1 && \ + ace $$file -o ace-report-v$$epubver --force ; \ + done modules.csv: $(PANDOCSOURCEFILES) @rg '^import.*Text\.Pandoc\.' --with-filename $^ \ -- cgit v1.2.3