diff options
author | Michael Opdenacker <michael.opdenacker@bootlin.com> | 2024-11-06 08:48:25 +0100 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2024-11-18 06:59:35 -0800 |
commit | 656b0274b2b93ae6c2669678b2908f90f0b0e30c (patch) | |
tree | 8110df158948416ba81c96f8e242d40a48823724 | |
parent | 1ca844121bcc490699c88eb4bc153bda7b3da759 (diff) | |
download | poky-656b0274b2b93ae6c2669678b2908f90f0b0e30c.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: 1ee04ff4798be042e9404fca08bbfb7058c79053)
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
(cherry picked from commit b6974695993599959c0d5b7436aa290ee5d0dfca)
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | documentation/Makefile | 4 |
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 | ||
29 | publish: Makefile html singlehtml | 29 | publish: 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 | ||