doc: Makefile: publish pdf and epub versions too

Message ID 20220615091209.1117442-1-michael.opdenacker@bootlin.com
State New
Headers show
Series doc: Makefile: publish pdf and epub versions too | expand

Commit Message

Michael Opdenacker June 15, 2022, 9:12 a.m. UTC
From: Michael Opdenacker <michael.opdenacker@bootlin.com>

[YOCTO #14357]

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

Patch

diff --git a/documentation/Makefile b/documentation/Makefile
index 9fb6814c8f..e013f68e7f 100644
--- a/documentation/Makefile
+++ b/documentation/Makefile
@@ -22,10 +22,10 @@  help:
 
 .PHONY: all help Makefile clean publish epub latexpdf
 
-publish: Makefile html singlehtml
+publish: Makefile html singlehtml epub latexpdf
 	rm -rf $(BUILDDIR)/$(DESTDIR)/
 	mkdir -p $(BUILDDIR)/$(DESTDIR)/
-	cp -r $(BUILDDIR)/html/* $(BUILDDIR)/$(DESTDIR)/
+	cp -r $(BUILDDIR)/html/* $(BUILDDIR)/epub/TheYoctoProject.epub $(BUILDDIR)/latex/theyoctoproject.pdf $(BUILDDIR)/$(DESTDIR)/
 	cp $(BUILDDIR)/singlehtml/index.html $(BUILDDIR)/$(DESTDIR)/singleindex.html
 	sed -i -e 's@index.html#@singleindex.html#@g' $(BUILDDIR)/$(DESTDIR)/singleindex.html