From 656b0274b2b93ae6c2669678b2908f90f0b0e30c Mon Sep 17 00:00:00 2001 From: Michael Opdenacker Date: Wed, 6 Nov 2024 08:48:25 +0100 Subject: [PATCH] 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 Signed-off-by: Antonin Godard (cherry picked from commit b6974695993599959c0d5b7436aa290ee5d0dfca) Signed-off-by: Antonin Godard Signed-off-by: Steve Sakoman --- documentation/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/documentation/Makefile b/documentation/Makefile index 30bb71cb31..65e29713d4 100644 --- a/documentation/Makefile +++ b/documentation/Makefile @@ -26,10 +26,12 @@ help: .PHONY: all help Makefile clean stylecheck publish epub latexpdf -publish: Makefile html singlehtml +publish: Makefile epub latexpdf html singlehtml rm -rf $(BUILDDIR)/$(DESTDIR)/ mkdir -p $(BUILDDIR)/$(DESTDIR)/ cp -r $(BUILDDIR)/html/* $(BUILDDIR)/$(DESTDIR)/ + mkdir -p $(BUILDDIR)/$(DESTDIR)/_static + cp $(BUILDDIR)/epub/TheYoctoProject.epub $(BUILDDIR)/latex/theyoctoproject.pdf $(BUILDDIR)/$(DESTDIR)/_static/ cp $(BUILDDIR)/singlehtml/index.html $(BUILDDIR)/$(DESTDIR)/singleindex.html sed -i -e 's@index.html#@singleindex.html#@g' $(BUILDDIR)/$(DESTDIR)/singleindex.html