mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Closes #1368: Enable CLI override of Makefile variables.
This commit is contained in:
parent
cbefc01b73
commit
aef4f9cdf6
@ -1,11 +1,14 @@
|
|||||||
# Minimal makefile for Sphinx documentation
|
# Minimal makefile for Sphinx documentation
|
||||||
#
|
#
|
||||||
|
|
||||||
# You can set these variables from the command line.
|
# You can set these variables from the command line. For example:
|
||||||
SPHINXOPTS =
|
# SPHINXOPTS='-E -W -n' make html
|
||||||
SPHINXBUILD = sphinx-build
|
# will run the html builder in a clean environment (-E), treating warnings
|
||||||
SOURCEDIR = {{ rsrcdir }}
|
# as errors (-W), in nitpicky mode (-n).
|
||||||
BUILDDIR = {{ rbuilddir }}
|
SPHINXOPTS ?=
|
||||||
|
SPHINXBUILD ?= sphinx-build
|
||||||
|
SOURCEDIR ?= {{ rsrcdir }}
|
||||||
|
BUILDDIR ?= {{ rbuilddir }}
|
||||||
|
|
||||||
# Put it first so that "make" without argument is like "make help".
|
# Put it first so that "make" without argument is like "make help".
|
||||||
help:
|
help:
|
||||||
@ -17,3 +20,4 @@ help:
|
|||||||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
||||||
%: Makefile
|
%: Makefile
|
||||||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user