1 # Makefile for Sphinx documentation
7 # You can set these variables from the command line.
9 SPHINXBUILD
= sphinx-build
14 PAPEROPT_a4
= -D latex_paper_size
=a4
15 PAPEROPT_letter
= -D latex_paper_size
=letter
16 ALLSPHINXOPTS
= -d
$(BUILDDIR
)/doctrees
$(PAPEROPT_
$(PAPER
)) $(SPHINXOPTS
) .
18 .PHONY
: help
clean all html latexpdf figs
24 -rm -rf
$(BUILDDIR
)/* *.pdf
*.png
27 $(SPHINXBUILD
) -b html
$(ALLSPHINXOPTS
) $(BUILDDIR
)/html
28 @echo
"Build finished. The HTML pages are in $(BUILDDIR)/html."
31 $(SPHINXBUILD
) -b latex
$(ALLSPHINXOPTS
) $(BUILDDIR
)/latex
32 @echo
"Running LaTeX files through pdflatex..."
33 make
-C
$(BUILDDIR
)/latex all-pdf
34 @echo
"pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
36 figs
: $(patsubst %.py
, %.png
, $(filter-out conf.py
,$(wildcard *.py
)))
39 export PYTHONPATH
=$(CURDIR
)/..
; $(PYTHON
) $^
42 $(GS
) -r100
-dNOPAUSE
-dQUIET
-dBATCH
-sDEVICE
=pngalpha
-dTextAlphaBits
=4 -dGraphicsAlphaBits
=4 -sOutputFile
=$@
$^