1 # Makefile for Sphinx documentation
4 # You can set these variables from the command line.
6 SPHINXBUILD
= sphinx-build
12 ALLSPHINXOPTS
= -d build
/doctrees
$(SPHINXOPTS
) $(INDIR
)
14 .PHONY
: help
clean html web pickle htmlhelp latex changes linkcheck
17 @echo
"Please use \`make <target>' where <target> is one of"
18 @echo
" html to make standalone HTML files"
19 @echo
" pickle to make pickle files"
20 @echo
" json to make JSON files"
21 @echo
" htmlhelp to make HTML files and a HTML help project"
22 @echo
" latex to make LaTeX files"
23 @echo
" changes to make an overview over all changed/added/deprecated items"
24 @echo
" linkcheck to check all external links for integrity"
30 mkdir
-p
$(HTMLDIR
) build
/doctrees
31 $(SPHINXBUILD
) -b html
$(ALLSPHINXOPTS
) $(HTMLDIR
)
33 @echo
"Copying some source files"
34 cp
$(INDIR
)/download
/pylit
$(HTMLDIR
)/download
/
35 cp
$(INDIR
)/examples
/*.txt
$(HTMLDIR
)/examples
/
36 cp
$(INDIR
)/examples
/*.py
$(HTMLDIR
)/examples
/
37 # cp $(INDIR)/examples/*.sty $(HTMLDIR)/examples/
38 # cp $(INDIR)/examples/*.css $(HTMLDIR)/examples/
39 cp
$(INDIR
)/tutorial
/*.py
$(HTMLDIR
)/tutorial
/
40 cp
$(INDIR
)/tutorial
/*.py.txt
$(HTMLDIR
)/tutorial
/
43 @echo
"Build finished. The HTML pages are in $(HTMLDIR)."
46 mkdir
-p build
/pickle build
/doctrees
47 $(SPHINXBUILD
) -b pickle
$(ALLSPHINXOPTS
) build
/pickle
49 @echo
"Build finished; now you can process the pickle files."
54 mkdir
-p build
/json build
/doctrees
55 $(SPHINXBUILD
) -b json
$(ALLSPHINXOPTS
) build
/json
57 @echo
"Build finished; now you can process the JSON files."
60 mkdir
-p build
/htmlhelp build
/doctrees
61 $(SPHINXBUILD
) -b htmlhelp
$(ALLSPHINXOPTS
) build
/htmlhelp
63 @echo
"Build finished; now you can run HTML Help Workshop with the" \
64 ".hhp project file in build/htmlhelp."
67 mkdir
-p build
/latex build
/doctrees
68 $(SPHINXBUILD
) -b latex
$(ALLSPHINXOPTS
) build
/latex
70 @echo
"Build finished; the LaTeX files are in build/latex."
71 @echo
"Run \`make all-pdf' or \`make all-ps' in that directory to" \
72 "run these through (pdf)latex."
75 mkdir
-p build
/changes build
/doctrees
76 $(SPHINXBUILD
) -b changes
$(ALLSPHINXOPTS
) build
/changes
78 @echo
"The overview file is in build/changes."
81 mkdir
-p build
/linkcheck build
/doctrees
82 $(SPHINXBUILD
) -b linkcheck
$(ALLSPHINXOPTS
) build
/linkcheck
84 @echo
"Link check complete; look for any errors in the above output " \
85 "or in build/linkcheck/output.txt."