aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 87398d114..2ecf26aeb 100644
--- a/Makefile
+++ b/Makefile
@@ -242,6 +242,13 @@ validate-docx-golden-tests: ## validate docx golden tests against schema
cd docx-validator && for f in ../test/docx/golden/*.docx; do ./validate $$f || exit 1 ; done
.PHONY: validate-docx-golden-tests
+validate-epub: ## generate an epub and validate it with epubcheck
+ which epubcheck || 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
+
modules.csv: $(PANDOCSOURCEFILES)
@rg '^import.*Text\.Pandoc\.' --with-filename $^ \
| rg -v 'Text\.Pandoc\.(Definition|Builder|Walk|Generic)' \