mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-26 10:16:32 +00:00
Makefile: improve epub-validation target.
Use `--epub-cover-image` to catch issues that only arise with that. See #9493.
This commit is contained in:
@@ -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 && \
|
||||
|
||||
Reference in New Issue
Block a user