diff options
author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2020-09-07 17:12:00 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-17 10:09:34 +0100 |
commit | 2a94fe8d6bab10f54e08e9785402dec396a2252d (patch) | |
tree | 1bf3f35fe2db17947d50cbcbbaf62c5ce2db1b52 /documentation | |
parent | 8fbaa0331c6020447b2992730533ec337bad8cb0 (diff) | |
download | poky-2a94fe8d6bab10f54e08e9785402dec396a2252d.tar.gz |
sphinx: makefile: add publish target
The 'publish' target prepares the sphinx output, so that it can be
transfered on the YP website.
(From yocto-docs rev: f7a06204ef94f9b71174de5364a62ba04deb709b)
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/Makefile.sphinx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/documentation/Makefile.sphinx b/documentation/Makefile.sphinx index 933c77ee5f..396998da03 100644 --- a/documentation/Makefile.sphinx +++ b/documentation/Makefile.sphinx | |||
@@ -12,7 +12,14 @@ BUILDDIR = _build | |||
12 | help: | 12 | help: |
13 | @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | 13 | @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
14 | 14 | ||
15 | .PHONY: help Makefile.sphinx | 15 | .PHONY: help Makefile.sphinx publish |
16 | |||
17 | publish: Makefile.sphinx html singlehtml | ||
18 | rm -rf $(BUILDDIR)/final/ | ||
19 | mkdir -p $(BUILDDIR)/final/ | ||
20 | cp -r $(BUILDDIR)/html/* $(BUILDDIR)/final/ | ||
21 | cp $(BUILDDIR)/singlehtml/index.html $(BUILDDIR)/final/singleindex.html | ||
22 | sed -i -e 's@index.html#@singleindex.html#@g' $(BUILDDIR)/final/singleindex.html | ||
16 | 23 | ||
17 | # Catch-all target: route all unknown targets to Sphinx using the new | 24 | # Catch-all target: route all unknown targets to Sphinx using the new |
18 | # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | 25 | # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). |