2017-01-13 20:32:27 +01:00
|
|
|
# Minimal makefile for Sphinx documentation
|
|
|
|
#
|
|
|
|
|
|
|
|
# You can set these variables from the command line.
|
2021-02-17 16:57:05 +01:00
|
|
|
SPHINXCONFDIR = rst
|
2021-03-05 18:31:56 +01:00
|
|
|
LANGOPTS ?=
|
|
|
|
SPHINXOPTS ?= -j $(CPUS) -n -w rst_warnings -c "$(SPHINXCONFDIR)" $(LANGOPTS)
|
2017-01-13 20:32:27 +01:00
|
|
|
SPHINXBUILD = sphinx-build
|
|
|
|
SPHINXPROJ = sdfsdf
|
2017-01-13 23:20:40 +01:00
|
|
|
SOURCEDIR = rst
|
2018-03-01 01:01:18 +01:00
|
|
|
|
|
|
|
# Sets the build output directory if it's not specified on the command line
|
|
|
|
ifndef BUILDDIR
|
|
|
|
BUILDDIR = _build
|
|
|
|
endif
|
2017-01-13 20:32:27 +01:00
|
|
|
|
|
|
|
# Put it first so that "make" without argument is like "make help".
|
|
|
|
help:
|
2017-01-13 23:20:40 +01:00
|
|
|
$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
2017-01-13 20:32:27 +01:00
|
|
|
|
|
|
|
.PHONY: help Makefile.sphinx
|
|
|
|
|
|
|
|
# Catch-all target: route all unknown targets to Sphinx using the new
|
|
|
|
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
|
|
|
%: Makefile.sphinx
|
2017-09-19 17:14:27 +02:00
|
|
|
$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|