2008-03-18 19:52:26 +00:00
|
|
|
# Makefile for Sphinx documentation
|
|
|
|
|
#
|
2018-06-20 19:11:20 +01:00
|
|
|
PYTHON ?= python3
|
2008-03-18 19:52:26 +00:00
|
|
|
|
|
|
|
|
# You can set these variables from the command line.
|
|
|
|
|
SPHINXOPTS =
|
2018-06-17 09:57:52 +02:00
|
|
|
SPHINXBUILD = $(PYTHON) ../sphinx/cmd/build.py
|
2014-01-19 16:23:23 +01:00
|
|
|
SOURCEDIR = .
|
2014-01-11 19:36:05 +01:00
|
|
|
BUILDDIR = _build
|
|
|
|
|
|
2016-10-23 10:45:23 +02:00
|
|
|
# Put it first so that "make" without argument is like "make help".
|
2008-03-18 19:52:26 +00:00
|
|
|
help:
|
2014-01-19 16:23:23 +01:00
|
|
|
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
2012-12-04 21:10:15 -06:00
|
|
|
|
2016-10-23 10:45:23 +02:00
|
|
|
.PHONY: help Makefile
|
2016-09-02 15:25:22 +09:00
|
|
|
|
2014-01-19 16:23:23 +01:00
|
|
|
# Catch-all target: route all unknown targets to Sphinx using the new
|
|
|
|
|
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
2016-10-23 10:45:23 +02:00
|
|
|
%: Makefile
|
2014-01-19 17:49:57 +01:00
|
|
|
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|