Skip to content
Snippets Groups Projects
Commit eb216cba authored by Nicolas Dandrimont's avatar Nicolas Dandrimont
Browse files

Makefiles: replace sphinx calls by hardcoded python3 calls

This allows you to still have python-sphinx and python3-sphinx coinstalled and
still build with Python 3.
parent 72c46ac9
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,8 @@
APIDOC_DIR = apidoc
APIDOC_OPTS = --implicit-namespaces
SPHINXBUILD = python3 -c 'import sphinx, sys; sys.exit(sphinx.main(sys.argv))'
SPHINXAPIDOC = python3 -c 'import sphinx.apidoc, sys; sys.exit(sphinx.apidoc.main(sys.argv))'
SPHINX_OPTS =
SPHINX_BUILDDIR = _build
SPHINX_SRCDIR = .
......@@ -18,13 +20,13 @@ html: sphinx/html
help: sphinx/help
sphinx/clean:
sphinx-build -M clean $(SPHINX_SRCDIR) $(SPHINX_BUILDDIR) $(SPHINXOPTS)
$(SPHINXBUILD) -M clean $(SPHINX_SRCDIR) $(SPHINX_BUILDDIR) $(SPHINXOPTS)
sphinx/%: apidoc-stamp
sphinx-build -M $* $(SPHINX_SRCDIR) $(SPHINX_BUILDDIR) $(SPHINXOPTS)
$(SPHINXBUILD) -M $* $(SPHINX_SRCDIR) $(SPHINX_BUILDDIR) $(SPHINXOPTS)
apidoc: apidoc-stamp
apidoc-stamp:
sphinx-apidoc $(APIDOC_OPTS) -o $(APIDOC_DIR) .. $(APIDOC_EXCLUDES)
$(SPHINXAPIDOC) $(APIDOC_OPTS) -o $(APIDOC_DIR) .. $(APIDOC_EXCLUDES)
touch $@
.PHONY: clean clean-apidoc
......
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXBUILD = python3 -c 'import sphinx, sys; sys.exit(sphinx.main(sys.argv))'
SOURCEDIR = .
BUILDDIR = _build
HTMLDIR = $(BUILDDIR)/html
......
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