From de13b8338f989b8b6a2dde1379be41e3e49420a8 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 11 May 2025 10:30:55 -0700 Subject: Makefile: install @daisy/ace from npm if not present. --- Makefile | 8 +++++--- 1 file 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 $^ \ -- cgit v1.2.3