Recurse into source subdirectories and print a total, backported from
em_book. The previous 'wc -w source/*' only counted top-level files and
errored on subdirectories.
- Use find to recurse and sort output for stable ordering
- Print a running total
- Reference SOURCE_FOLDER instead of hardcoded 'source'
- Set SHELL := /bin/bash (needed for process substitution)
- Add .PHONY declarations
Co-authored-by: Dunya Kirkali <exedev@writting.exe.xyz>
Co-authored-by: Shelley <shelley@exe.dev>
Backported from em_book's CI. Adds a 'make epubcheck' target that builds
the EPUB (via its dependency) and validates it with EPUBCheck, so authors
can catch EPUB issues locally before publishing.
- New epubcheck target depending on the EPUB path
- Document it in the README
- Add .PHONY declarations
Co-authored-by: Dunya Kirkali <exedev@writting.exe.xyz>
Co-authored-by: Shelley <shelley@exe.dev>