Lines 1-14
Link Here
|
1 |
# Makefile for Sphinx documentation |
1 |
# Makefile for Sphinx documentation |
2 |
# |
2 |
# |
3 |
PYTHON = python |
3 |
PYTHON = python |
4 |
RST2HTML = rst2html |
4 |
RST2HTML = rst2html.py |
5 |
|
5 |
|
6 |
# You can set these variables from the command line. |
6 |
# You can set these variables from the command line. |
7 |
SPHINXOPTS = |
7 |
SPHINXOPTS = |
8 |
SPHINXVER = 0.5 |
|
|
9 |
#SPHINXBUILDpy = sphinx/Sphinx-$(SPHINXVER)/sphinx-build.py |
10 |
SPHINXBUILDpy = sphinx-build |
11 |
SPHINXBUILD = PYTHONPATH=..:$(PYTHONPATH) $(SPHINXBUILDpy) |
12 |
PAPER = |
8 |
PAPER = |
13 |
|
9 |
|
14 |
ALLSPHINXOPTS = -d _build/doctrees -D latex_paper_size=$(PAPER) \ |
10 |
ALLSPHINXOPTS = -d _build/doctrees -D latex_paper_size=$(PAPER) \ |
Lines 32-44
clean:
Link Here
|
32 |
-rm -rf _build |
28 |
-rm -rf _build |
33 |
-rm -rf sphinx |
29 |
-rm -rf sphinx |
34 |
|
30 |
|
35 |
$(SPHINXBUILDpy): |
31 |
html: spt-printable |
36 |
rm -rf sphinx |
|
|
37 |
# mkdir sphinx |
38 |
# cd sphinx; wget http://pypi.python.org/packages/source/S/Sphinx/Sphinx-$(SPHINXVER).tar.gz; |
39 |
# cd sphinx; tar xzf Sphinx-$(SPHINXVER).tar.gz |
40 |
|
41 |
html: $(SPHINXBUILDpy) spt-printable |
42 |
mkdir -p src/.static |
32 |
mkdir -p src/.static |
43 |
mkdir -p _build/html _build/doctrees |
33 |
mkdir -p _build/html _build/doctrees |
44 |
mkdir -p src/modules |
34 |
mkdir -p src/modules |
Lines 53-59
spt-printable:
Link Here
|
53 |
mkdir -p _build/html/ |
43 |
mkdir -p _build/html/ |
54 |
$(RST2HTML) src/sympy-patches-tutorial.txt > _build/html/spt-printable.html |
44 |
$(RST2HTML) src/sympy-patches-tutorial.txt > _build/html/spt-printable.html |
55 |
|
45 |
|
56 |
htmlapi: $(SPHINXBUILDpy) |
46 |
htmlapi: |
57 |
mkdir -p api/.static |
47 |
mkdir -p api/.static |
58 |
mkdir -p api/modules |
48 |
mkdir -p api/modules |
59 |
mkdir -p _build/api _build/doctreesapi |
49 |
mkdir -p _build/api _build/doctreesapi |
Lines 78-84
htmlhelp:
Link Here
|
78 |
@echo "Build finished; now you can run HTML Help Workshop with the" \ |
68 |
@echo "Build finished; now you can run HTML Help Workshop with the" \ |
79 |
".hhp project file in _build/htmlhelp." |
69 |
".hhp project file in _build/htmlhelp." |
80 |
|
70 |
|
81 |
latex: $(SPHINXBUILDpy) |
71 |
latex: |
82 |
mkdir -p _build/latex _build/doctrees |
72 |
mkdir -p _build/latex _build/doctrees |
83 |
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex |
73 |
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex |
84 |
@echo |
74 |
@echo |