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

docs Makefile: minor cleanups

- do not silence sphinx CLI invocations (it's bad for logs)
- avoid $(apidoc_dep) variable (it doesn't exist for any other *-stamp)
parent f22511d4
No related branches found
No related tags found
No related merge requests found
......@@ -17,8 +17,6 @@ APIDOC_EXCLUDES = */tests */tests/* */*/tests/* */*/*/tests/*
APIDOC_EXCLUDES += */migrations */migrations/* */*/migrations/* */*/*/migrations/*
APIDOC_SWH_EXCLUDES = $(patsubst %,$(SWHPKGDIR)/%,$(APIDOC_EXCLUDES))
apidoc_dep = apidoc-stamp
html: sphinx/html
sphinx/html: links-stamp apidoc-stamp images-stamp rec-build-stamp
......@@ -27,8 +25,8 @@ links-stamp:
bin/ln-sphinx-subprojects
touch $@
apidoc: $(apidoc_dep)
apidoc-stamp:
apidoc: apidoc-stamp
apidoc-stamp: images-stamp
$(SPHINXAPIDOC) $(APIDOC_OPTS) -o $(APIDOC_DIR) $(SWHPKGDIR) $(APIDOC_SWH_EXCLUDES)
touch $@
......@@ -55,10 +53,10 @@ distclean: clean
help: sphinx/help
sphinx/clean:
@$(SPHINXBUILD) -M clean "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)
$(SPHINXBUILD) -M clean "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)
sphinx/%:
@$(SPHINXBUILD) -b $* "$(SOURCEDIR)" "$(BUILDDIR)/$*" $(SPHINXOPTS)
$(SPHINXBUILD) -b $* "$(SOURCEDIR)" "$(BUILDDIR)/$*" $(SPHINXOPTS)
install: html
test -d $(HTMLDIR)
......
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