aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2025-05-11 10:30:55 -0700
committerJohn MacFarlane <[email protected]>2025-05-11 10:30:55 -0700
commitde13b8338f989b8b6a2dde1379be41e3e49420a8 (patch)
tree9bc90c8e33596df1ad123b200e8ea39ef53d2a16 /Makefile
parent7bd26b515ea4099e1b2c17d7b039a51ea22a68c0 (diff)
Makefile: install @daisy/ace from npm if not present.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7b8de03ef..7886cd2f1 100644
--- a/Makefile
+++ b/Makefile
@@ -258,9 +258,11 @@ 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 and ace
+node_modules/.bin/ace:
+ npm install @daisy/ace
+
+validate-epub: node_modules/.bin/ace ## generate an epub and validate it with epubcheck and ace
which epubcheck || exit 1
- which ace || exit 1
tmp=$$(mktemp -d) && \
for epubver in 2 3; do \
file=$$tmp/ver$$epubver.epub ; \
@@ -268,7 +270,7 @@ validate-epub: ## generate an epub and validate it with epubcheck and ace
echo $$file && \
epubcheck $$file || exit 1 ; \
done && \
- ace $$tmp/ver3.epub -o ace-report-v2 --force
+ ./node_modules/.bin/ace $$tmp/ver3.epub -o ace-report-v2 --force
modules.csv: $(PANDOCSOURCEFILES)
@rg '^import.*Text\.Pandoc\.' --with-filename $^ \