aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2024-01-26 10:48:48 -0800
committerJohn MacFarlane <[email protected]>2024-01-26 10:48:48 -0800
commitebed209627ceb6670a43cb66aba21d1b653092a8 (patch)
treedfbd660b04ed53a70bbd6a0faad7a2ccf9e73e3e /Makefile
parente7b2b2bd8b36a9ff2a979144cc62e3f945337edb (diff)
Add ace check to validate-epub Makefile target.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7d9c3fa9c..c15ea6900 100644
--- a/Makefile
+++ b/Makefile
@@ -252,12 +252,14 @@ validate-docx-golden-tests2: ## validate docx golden tests using OOXMLValidator
sh ./tools/validate-docx2.sh test/docx/golden/
.PHONY: validate-docx-golden-tests2
-validate-epub: ## generate an epub and validate it with epubcheck
+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/features.native -Mtitle="Features" --resource-path test/epub -o $$tmp/file.epub --number-sections --toc --quiet && \
echo $$tmp/file.epub && \
- epubcheck $$tmp/file.epub
+ epubcheck $$tmp/file.epub && \
+ ace $$tmp/file.epub
modules.csv: $(PANDOCSOURCEFILES)
@rg '^import.*Text\.Pandoc\.' --with-filename $^ \