Skip to content
Snippets Groups Projects
Commit e6c4f8d8 authored by Stefano Zacchiroli's avatar Stefano Zacchiroli
Browse files

Makefile.sphinx: allow modules to opt-out from apidoc generation

parent 4be294a6
No related branches found
No related tags found
No related merge requests found
......@@ -19,9 +19,17 @@ APIDOC_EXCLUDES += '../utils/*'
html: sphinx/html
help: sphinx/help
# allow to skip apidoc generation, for modules where the overall documentation
# structure, table of contents, etc., is manually curated
ifeq ($(SKIP_APIDOC),yes)
apidoc_dep =
else
apidoc_dep = apidoc-stamp
endif
sphinx/clean:
$(SPHINXBUILD) -M clean $(SPHINX_SRCDIR) $(SPHINX_BUILDDIR) $(SPHINXOPTS)
sphinx/%: apidoc-stamp
sphinx/%: $(apidoc_dep)
$(SPHINXBUILD) -M $* $(SPHINX_SRCDIR) $(SPHINX_BUILDDIR) $(SPHINXOPTS)
apidoc: apidoc-stamp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment