Add make target to check a cleanly built EPUB using epubcheck

Signed-off-by: David Runge <dave@sleepmap.de>
This commit is contained in:
David Runge 2023-11-24 12:00:05 +01:00
parent d7d34d4940
commit 8f1d939ddb
No known key found for this signature in database
GPG key ID: 90D4B9641E092971

View file

@ -7,6 +7,7 @@
# You can set these variables from the command line, and also
# from the environment for the first two.
CODESPELL ?= codespell
EPUBCHECK ?= epubcheck
SPHINXOPTS ?= -W
SPHINXBUILD ?= sphinx-build
LYCHEE ?= lychee
@ -14,6 +15,9 @@ PRINTF ?= printf
SOURCEDIR = source
BUILDDIR = build
epub-check: clean epub
@$(EPUBCHECK) "$(BUILDDIR)/epub/"*.epub
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)