summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2024-02-16 13:42:19 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2024-02-16 13:42:19 -0800
commitb506171578944ae274b9b39ee92474858425f570 (patch)
treec5d26850e3e65291f956773f72e64fd983be9798
parent9f8344d54eb4e36cae131eea8a172e70bf7ef9a8 (diff)
Makefile: improve validate-epub.
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 6a0f2b59b..ae7e4bb98 100644
--- a/Makefile
+++ b/Makefile
@@ -256,12 +256,12 @@ validate-epub: ## generate an epub and validate it with epubcheck and ace
which ace || exit 1
tmp=$$(mktemp -d) && \
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
+ file=$$tmp/ver$$epubver.epub ; \
+ $(pandoc) test/epub/wasteland.epub -Mtitle="The Wasteland" --resource-path test/epub -t epub$$epubver -o $$file --number-sections --toc --quiet && \
+ echo $$file && \
+ epubcheck $$file || exit 1 ; \
+ done && \
+ ace $$tmp/ver3.epub -o ace-report-v2 --force
modules.csv: $(PANDOCSOURCEFILES)
@rg '^import.*Text\.Pandoc\.' --with-filename $^ \