summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorMichael Opdenacker <michael.opdenacker@bootlin.com>2024-11-06 08:48:25 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-12 11:09:51 +0000
commitc2fb6065027987aa10f20d5ded614a2af05e2319 (patch)
treee8c26b7e53059202ed410f2aa2160fe359bc13ba /documentation
parent06f00545ffbc3dd8b045ab56c03d1e8226dac981 (diff)
downloadpoky-c2fb6065027987aa10f20d5ded614a2af05e2319.tar.gz
doc: Makefile: publish pdf and epub versions too
Copy the generated files in the special _static directory. Fixes [YOCTO #14357] (From yocto-docs rev: b60c5b86eaef5ddab026837e0952a28c7948bc2d) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r--documentation/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/documentation/Makefile b/documentation/Makefile
index 30bb71cb31..65e29713d4 100644
--- a/documentation/Makefile
+++ b/documentation/Makefile
@@ -26,10 +26,12 @@ help:
26 26
27.PHONY: all help Makefile clean stylecheck publish epub latexpdf 27.PHONY: all help Makefile clean stylecheck publish epub latexpdf
28 28
29publish: Makefile html singlehtml 29publish: Makefile epub latexpdf html singlehtml
30 rm -rf $(BUILDDIR)/$(DESTDIR)/ 30 rm -rf $(BUILDDIR)/$(DESTDIR)/
31 mkdir -p $(BUILDDIR)/$(DESTDIR)/ 31 mkdir -p $(BUILDDIR)/$(DESTDIR)/
32 cp -r $(BUILDDIR)/html/* $(BUILDDIR)/$(DESTDIR)/ 32 cp -r $(BUILDDIR)/html/* $(BUILDDIR)/$(DESTDIR)/
33 mkdir -p $(BUILDDIR)/$(DESTDIR)/_static
34 cp $(BUILDDIR)/epub/TheYoctoProject.epub $(BUILDDIR)/latex/theyoctoproject.pdf $(BUILDDIR)/$(DESTDIR)/_static/
33 cp $(BUILDDIR)/singlehtml/index.html $(BUILDDIR)/$(DESTDIR)/singleindex.html 35 cp $(BUILDDIR)/singlehtml/index.html $(BUILDDIR)/$(DESTDIR)/singleindex.html
34 sed -i -e 's@index.html#@singleindex.html#@g' $(BUILDDIR)/$(DESTDIR)/singleindex.html 36 sed -i -e 's@index.html#@singleindex.html#@g' $(BUILDDIR)/$(DESTDIR)/singleindex.html
35 37