mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-26 15:08:51 +03:00
Improve docs Makefile to do full build
Include the make apidoc and breathe-apidoc steps in the documentation Makefile for ease of use. In this way, depart from the Makefile generated automatically by Sphinx. Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
parent
f15b7b6300
commit
1c40d751b4
@ -12,9 +12,27 @@ BUILDDIR = _build
|
|||||||
help:
|
help:
|
||||||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
||||||
|
|
||||||
.PHONY: help Makefile
|
.PHONY: help clean apidoc breathe_apidoc Makefile
|
||||||
|
|
||||||
|
# Intercept the 'clean' target so we can do the right thing for apidoc as well
|
||||||
|
clean:
|
||||||
|
@# Clean the apidoc
|
||||||
|
$(MAKE) -C .. apidoc_clean
|
||||||
|
@# Clean the sphinx docs
|
||||||
|
@$(SPHINXBUILD) -M clean "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
||||||
|
|
||||||
|
apidoc:
|
||||||
|
@# Generate doxygen from source using the main Makefile
|
||||||
|
$(MAKE) -C .. apidoc
|
||||||
|
|
||||||
|
breathe_apidoc: apidoc
|
||||||
|
@# Remove existing files - breathe-apidoc skips them if they're present
|
||||||
|
rm -rf ./api
|
||||||
|
@# Generate RST file structure with breathe-apidoc
|
||||||
|
breathe-apidoc -o ./api ../apidoc/xml
|
||||||
|
|
||||||
# Catch-all target: route all unknown targets to Sphinx using the new
|
# Catch-all target: route all unknown targets to Sphinx using the new
|
||||||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
||||||
%: Makefile
|
%: Makefile breathe_apidoc
|
||||||
|
@# Build the relevant target with sphinx
|
||||||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user