Allow SPHINXBUILD on command line

This commit is contained in:
Federico Di Gregorio 2018-10-07 13:55:11 +02:00
parent 81addddaee
commit f56392a245
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@ -15,5 +15,6 @@ env
env?
.idea
.tox
.vscode/
/rel
/wheels

View File

@ -10,7 +10,8 @@ check: doctest
PYTHON := python$(PYTHON_VERSION)
PYTHON_VERSION ?= $(shell $(PYTHON) -c 'import sys; print ("%d.%d" % sys.version_info[:2])')
SPHOPTS=PYTHONPATH=$$(pwd)/../build/lib.$(PYTHON_VERSION)/ SPHINXBUILD=$$(pwd)/env/bin/sphinx-build
SPHINXBUILD ?= $$(pwd)/env/bin/sphinx-build
SPHOPTS = PYTHONPATH=$$(pwd)/../build/lib.$(PYTHON_VERSION)/ SPHINXBUILD=$(SPHINXBUILD)
html:
$(MAKE) PYTHON=$(PYTHON) -C .. package