diff options
| author | Michael Opdenacker <michael.opdenacker@bootlin.com> | 2024-11-06 08:48:25 +0100 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-11-15 06:05:32 -0800 |
| commit | 9a38a7be64d594df202b714fea3c5aa4a5fdf0cd (patch) | |
| tree | 358c297394156f4691ed77c89f03ecd931de4d43 /documentation | |
| parent | fdd6df60f17c02fea53b7df6a9b802b24bf4b5c5 (diff) | |
| download | poky-9a38a7be64d594df202b714fea3c5aa4a5fdf0cd.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: 96947b5c0e79fa0e9500388585cce5f2b91e69db)
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>
Diffstat (limited to 'documentation')
| -rw-r--r-- | documentation/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/documentation/Makefile b/documentation/Makefile index 402ad986ae..d07baf0d23 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 | ||
