From 8f1d939ddbccae92fec333a1efcd5564ad7003ec Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 24 Nov 2023 12:00:05 +0100 Subject: [PATCH] Add make target to check a cleanly built EPUB using epubcheck Signed-off-by: David Runge --- book/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/book/Makefile b/book/Makefile index a4c41c9..8e84021 100644 --- a/book/Makefile +++ b/book/Makefile @@ -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)