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
16 logo
/pylit-bold-framed.png
:
17 inkscape
--export-png
=logo
/pylit-bold-framed.png logo
/pylit-bold-framed.svg
20 @echo
"Please use \`make <target>' where <target> is one of"
21 @echo
" html to make standalone HTML files"
22 @echo
" pickle to make pickle files"
23 @echo
" json to make JSON files"
24 @echo
" htmlhelp to make HTML files and a HTML help project"
25 @echo
" latex to make LaTeX files"
26 @echo
" changes to make an overview over all changed/added/deprecated items"
27 @echo
" linkcheck to check all external links for integrity"
32 html
: logo
/pylit-bold-framed.png
34 mkdir
-p
$(HTMLDIR
) build
/doctrees
35 $(SPHINXBUILD
) -b html
$(ALLSPHINXOPTS
) $(HTMLDIR
)
37 @echo
"Copying some source files"
38 cp
$(INDIR
)/download
/pylit
$(HTMLDIR
)/download
/
39 cp
$(INDIR
)/examples
/*.txt
$(HTMLDIR
)/examples
/
40 cp
$(INDIR
)/examples
/*.py
$(HTMLDIR
)/examples
/
41 # cp $(INDIR)/examples/*.sty $(HTMLDIR)/examples/
42 # cp $(INDIR)/examples/*.css $(HTMLDIR)/examples/
43 cp
$(INDIR
)/tutorial
/*.py
$(HTMLDIR
)/tutorial
/
44 cp
$(INDIR
)/tutorial
/*.py.txt
$(HTMLDIR
)/tutorial
/
47 @echo
"Build finished. The HTML pages are in $(HTMLDIR)."
50 mkdir
-p build
/pickle build
/doctrees
51 $(SPHINXBUILD
) -b pickle
$(ALLSPHINXOPTS
) build
/pickle
53 @echo
"Build finished; now you can process the pickle files."
58 mkdir
-p build
/json build
/doctrees
59 $(SPHINXBUILD
) -b json
$(ALLSPHINXOPTS
) build
/json
61 @echo
"Build finished; now you can process the JSON files."
64 mkdir
-p build
/htmlhelp build
/doctrees
65 $(SPHINXBUILD
) -b htmlhelp
$(ALLSPHINXOPTS
) build
/htmlhelp
67 @echo
"Build finished; now you can run HTML Help Workshop with the" \
68 ".hhp project file in build/htmlhelp."
71 mkdir
-p build
/latex build
/doctrees
72 $(SPHINXBUILD
) -b latex
$(ALLSPHINXOPTS
) build
/latex
74 @echo
"Build finished; the LaTeX files are in build/latex."
75 @echo
"Run \`make all-pdf' or \`make all-ps' in that directory to" \
76 "run these through (pdf)latex."
79 mkdir
-p build
/changes build
/doctrees
80 $(SPHINXBUILD
) -b changes
$(ALLSPHINXOPTS
) build
/changes
82 @echo
"The overview file is in build/changes."
85 mkdir
-p build
/linkcheck build
/doctrees
86 $(SPHINXBUILD
) -b linkcheck
$(ALLSPHINXOPTS
) build
/linkcheck
88 @echo
"Link check complete; look for any errors in the above output " \
89 "or in build/linkcheck/output.txt."