diff options
| author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2020-09-08 16:11:14 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-16 18:14:07 +0100 |
| commit | 67b5e54d014d8de74cd13bdb2071a83f71cab34b (patch) | |
| tree | 769d459c443d3df7d5deca1719095b5c718ee357 | |
| parent | 9dfd6e1aa11886e16b63d9418e1de7c7faf00132 (diff) | |
| download | poky-67b5e54d014d8de74cd13bdb2071a83f71cab34b.tar.gz | |
bitbake: sphinx: Makefile.sphinx: add clean and publish targets
(Bitbake rev: 219b2348f51a02b102cd1c34c87f279c83ae4908)
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | bitbake/doc/Makefile.sphinx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/bitbake/doc/Makefile.sphinx b/bitbake/doc/Makefile.sphinx index 933c77ee5f..c663c29540 100644 --- a/bitbake/doc/Makefile.sphinx +++ b/bitbake/doc/Makefile.sphinx | |||
| @@ -7,12 +7,23 @@ SPHINXOPTS ?= | |||
| 7 | SPHINXBUILD ?= sphinx-build | 7 | SPHINXBUILD ?= sphinx-build |
| 8 | SOURCEDIR = . | 8 | SOURCEDIR = . |
| 9 | BUILDDIR = _build | 9 | BUILDDIR = _build |
| 10 | DESTDIR = final | ||
| 10 | 11 | ||
| 11 | # Put it first so that "make" without argument is like "make help". | 12 | # Put it first so that "make" without argument is like "make help". |
| 12 | help: | 13 | help: |
| 13 | @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | 14 | @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
| 14 | 15 | ||
| 15 | .PHONY: help Makefile.sphinx | 16 | .PHONY: help Makefile.sphinx clean publish |
| 17 | |||
| 18 | publish: Makefile.sphinx html singlehtml | ||
| 19 | rm -rf $(BUILDDIR)/$(DESTDIR)/ | ||
| 20 | mkdir -p $(BUILDDIR)/$(DESTDIR)/ | ||
| 21 | cp -r $(BUILDDIR)/html/* $(BUILDDIR)/$(DESTDIR)/ | ||
| 22 | cp $(BUILDDIR)/singlehtml/index.html $(BUILDDIR)/$(DESTDIR)/singleindex.html | ||
| 23 | sed -i -e 's@index.html#@singleindex.html#@g' $(BUILDDIR)/$(DESTDIR)/singleindex.html | ||
| 24 | |||
| 25 | clean: | ||
| 26 | @rm -rf $(BUILDDIR) | ||
| 16 | 27 | ||
| 17 | # Catch-all target: route all unknown targets to Sphinx using the new | 28 | # Catch-all target: route all unknown targets to Sphinx using the new |
| 18 | # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | 29 | # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). |
