1 # Makefile for Sphinx documentation
5 # You can set these variables from the command line.
8 SPHINXBUILDpy
= sphinx
/Sphinx-
$(SPHINXVER
)/sphinx-build.py
9 SPHINXBUILD
= PYTHONPATH
=.. python
$(SPHINXBUILDpy
)
12 ALLSPHINXOPTS
= -d _build
/doctrees
-D latex_paper_size
=$(PAPER
) \
15 ALLSPHINXOPTSapi
= -d _build
/doctreesapi
-D latex_paper_size
=$(PAPER
) \
18 .PHONY
: help
clean html web htmlhelp latex changes linkcheck
21 @echo
"Please use \`make <target>' where <target> is one of"
22 @echo
" html to make standalone HTML files"
23 @echo
" web to make files usable by Sphinx.web"
24 @echo
" htmlhelp to make HTML files and a HTML help project"
25 @echo
" latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
26 @echo
" changes to make an overview over all changed/added/deprecated items"
27 @echo
" linkcheck to check all external links for integrity"
36 cd sphinx
; wget http
://pypi.python.org
/packages
/source
/S
/Sphinx
/Sphinx-
$(SPHINXVER
).
tar.gz
;
37 cd sphinx
; tar xzf Sphinx-
$(SPHINXVER
).
tar.gz
39 html
: $(SPHINXBUILDpy
) spt-printable
41 mkdir
-p _build
/html _build
/doctrees
43 $(SPHINXBUILD
) -b html
$(ALLSPHINXOPTS
) _build
/html
44 cp
-r src
/pics _build
/html
/
45 cp
-r src
/figures _build
/html
/
46 cp
-r src
/spt-patches _build
/html
/
48 @echo
"Build finished. The HTML pages are in _build/html."
52 $(RST2HTML
) src
/sympy-patches-tutorial.txt
> _build
/html
/spt-printable.html
54 htmlapi
: $(SPHINXBUILDpy
)
57 mkdir
-p _build
/api _build
/doctreesapi
58 rm -f api
/modules
/sympy
*.txt
59 .
/generate_reference.py
60 $(SPHINXBUILD
) -b html
$(ALLSPHINXOPTSapi
) _build
/api
62 @echo
"Build finished. The API docs pages are in _build/api."
65 mkdir
-p _build
/web _build
/doctrees
66 $(SPHINXBUILD
) -b web
$(ALLSPHINXOPTS
) _build
/web
68 @echo
"Build finished; now you can run"
69 @echo
" python -m sphinx.web _build/web"
70 @echo
"to start the server."
73 mkdir
-p _build
/htmlhelp _build
/doctrees
74 $(SPHINXBUILD
) -b htmlhelp
$(ALLSPHINXOPTS
) _build
/htmlhelp
76 @echo
"Build finished; now you can run HTML Help Workshop with the" \
77 ".hhp project file in _build/htmlhelp."
79 latex
: $(SPHINXBUILDpy
)
80 mkdir
-p _build
/latex _build
/doctrees
81 $(SPHINXBUILD
) -b latex
$(ALLSPHINXOPTS
) _build
/latex
83 @echo
"Build finished; the LaTeX files are in _build/latex."
84 @echo
"Run \`make all-pdf' or \`make all-ps' in that directory to" \
85 "run these through (pdf)latex."
88 mkdir
-p _build
/changes _build
/doctrees
89 $(SPHINXBUILD
) -b changes
$(ALLSPHINXOPTS
) _build
/changes
91 @echo
"The overview file is in _build/changes."
94 mkdir
-p _build
/linkcheck _build
/doctrees
95 $(SPHINXBUILD
) -b linkcheck
$(ALLSPHINXOPTS
) _build
/linkcheck
97 @echo
"Link check complete; look for any errors in the above output " \
98 "or in _build/linkcheck/output.txt."