1 # Makefile for Sphinx documentation
6 # You can set these variables from the command line.
8 SPHINXBUILD
= sphinx-build
13 PAPEROPT_a4
= -D latex_paper_size
=a4
14 PAPEROPT_letter
= -D latex_paper_size
=letter
15 ALLSPHINXOPTS
= -d
$(BUILDDIR
)/doctrees
$(PAPEROPT_
$(PAPER
)) $(SPHINXOPTS
) .
17 .PHONY
: help
clean all html latexpdf
23 -rm -rf
$(BUILDDIR
)/* *.eps
*.pdf
*.png
26 $(SPHINXBUILD
) -b html
$(ALLSPHINXOPTS
) $(BUILDDIR
)/html
27 @echo
"Build finished. The HTML pages are in $(BUILDDIR)/html."
30 $(SPHINXBUILD
) -b latex
$(ALLSPHINXOPTS
) $(BUILDDIR
)/latex
31 @echo
"Running LaTeX files through pdflatex..."
32 make
-C
$(BUILDDIR
)/latex all-pdf
33 @echo
"pdflatex finished; the PDF files are in $(BUILDDIR)/latex."