2018-09-13 16:38:41 -05:00
|
|
|
# Minimal makefile for Sphinx documentation
|
|
|
|
#
|
|
|
|
|
|
|
|
# You can set these variables from the command line.
|
|
|
|
SPHINXOPTS =
|
2019-08-03 18:51:06 -05:00
|
|
|
SPHINXBUILD = sphinx-build
|
2018-09-13 16:38:41 -05:00
|
|
|
SOURCEDIR = source
|
|
|
|
BUILDDIR = build
|
|
|
|
|
2019-08-31 16:19:34 -05:00
|
|
|
PAPER =
|
2018-09-13 17:25:24 -05:00
|
|
|
PAPEROPT_a4 = -D latex_paper_size=a4
|
|
|
|
PAPEROPT_letter = -D latex_paper_size=letter
|
|
|
|
ALL_SPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SOURCEDIR)
|
|
|
|
|
2018-09-13 16:38:41 -05:00
|
|
|
# Put it first so that "make" without argument is like "make help".
|
|
|
|
help:
|
|
|
|
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
|
|
|
2019-08-31 16:19:34 -05:00
|
|
|
livehtml:
|
|
|
|
sphinx-autobuild -b html $(ALL_SPHINXOPTS) $(BUILDDIR)/html
|
|
|
|
|
|
|
|
clean:
|
2018-09-13 17:25:24 -05:00
|
|
|
rm -rf $(BUILDDIR)/*
|
|
|
|
|
|
|
|
.PHONY: help clean Makefile
|
2018-09-13 16:38:41 -05:00
|
|
|
|
|
|
|
# Catch-all target: route all unknown targets to Sphinx using the new
|
|
|
|
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
|
|
|
%: Makefile
|
2018-09-13 17:25:24 -05:00
|
|
|
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
|
|
#html:
|
|
|
|
# $(SPHINXBUILD) -b html $@ "$(SOURCEDIR)" "$(BUILDDIR)/html" $(SPHINXOPTS)
|
2019-08-31 16:19:34 -05:00
|
|
|
|