docs/Makefile: define and use PYTHON as the interpreter for CPYDIFF
User can override PYTHON executable before running script, gen-cpydiff.py works only with Python3 and most systems register its executable as 'python3'.
This commit is contained in:
parent
ad81a2e6cf
commit
ae116c2430
|
@ -2,6 +2,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
# You can set these variables from the command line.
|
# You can set these variables from the command line.
|
||||||
|
PYTHON = python3
|
||||||
SPHINXOPTS =
|
SPHINXOPTS =
|
||||||
SPHINXBUILD = sphinx-build
|
SPHINXBUILD = sphinx-build
|
||||||
PAPER =
|
PAPER =
|
||||||
|
@ -60,7 +61,7 @@ clean:
|
||||||
cpydiff:
|
cpydiff:
|
||||||
@echo "Generating MicroPython Differences."
|
@echo "Generating MicroPython Differences."
|
||||||
rm -f $(GENRSTDIR)/*
|
rm -f $(GENRSTDIR)/*
|
||||||
cd $(CPYDIFFDIR) && python $(CPYDIFF)
|
cd $(CPYDIFFDIR) && $(PYTHON) $(CPYDIFF)
|
||||||
|
|
||||||
html: cpydiff
|
html: cpydiff
|
||||||
$(SPHINXBUILD) $(FORCE) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
$(SPHINXBUILD) $(FORCE) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
||||||
|
|
Loading…
Reference in New Issue