diff options
| author | John MacFarlane <[email protected]> | 2025-05-11 10:30:55 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2025-05-11 10:30:55 -0700 |
| commit | de13b8338f989b8b6a2dde1379be41e3e49420a8 (patch) | |
| tree | 9bc90c8e33596df1ad123b200e8ea39ef53d2a16 /Makefile | |
| parent | 7bd26b515ea4099e1b2c17d7b039a51ea22a68c0 (diff) | |
Makefile: install @daisy/ace from npm if not present.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 $^ \ |
