doc/Makefile: fix epub and latexpdf targets

Message ID 20220504154039.690761-1-michael.opdenacker@bootlin.com
State New
Headers show
Series doc/Makefile: fix epub and latexpdf targets | expand

Commit Message

Michael Opdenacker May 4, 2022, 3:40 p.m. UTC
From: Michael Opdenacker <michael.opdenacker@bootlin.com>

Fixing "make clean" followed by "make epub" or "make latexpdf"

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
---
 documentation/Makefile | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/documentation/Makefile b/documentation/Makefile
index 33bbca0bab..9fb6814c8f 100644
--- a/documentation/Makefile
+++ b/documentation/Makefile
@@ -47,9 +47,11 @@  clean:
 	@rm -rf $(BUILDDIR) $(PNGs) $(PDFs) poky.yaml sphinx-static/switchers.js
 
 epub: $(PNGs)
+	$(SOURCEDIR)/set_versions.py
 	@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
 
 latexpdf: $(PDFs)
+	$(SOURCEDIR)/set_versions.py
 	@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
 
 all: html epub latexpdf