From 23337fe9dc3afada6b173bbaa90b855bd07abb26 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 22 Feb 2024 23:12:15 -0600 Subject: Makefile: improve epub-validation target. Use `--epub-cover-image` to catch issues that only arise with that. See #9493. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ae7e4bb98..bc9e92beb 100644 --- a/Makefile +++ b/Makefile @@ -257,7 +257,7 @@ validate-epub: ## generate an epub and validate it with epubcheck and ace tmp=$$(mktemp -d) && \ for epubver in 2 3; do \ 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 && \ + $(pandoc) test/epub/wasteland.epub --epub-cover=test/lalune.jpg -Mtitle="The Wasteland" --resource-path test/epub -t epub$$epubver -o $$file --number-sections --toc --quiet && \ echo $$file && \ epubcheck $$file || exit 1 ; \ done && \ -- cgit v1.2.3