1 # Makefile for Sphinx documentation
4 # You can set these variables from the command line.
6 SPHINXBUILD
= sphinx-build
10 PAGESDIR
= ..
/pages
/PyLit
13 ALLSPHINXOPTS
= -d build
/doctrees
$(SPHINXOPTS
) $(INDIR
)
15 .PHONY
: examples help
clean html web pickle htmlhelp latex changes linkcheck pages
17 logo
/pylit-bold-framed.png
: logo
/pylit-bold-framed.svg
18 inkscape
--export-png
=logo
/pylit-bold-framed.png logo
/pylit-bold-framed.svg
20 examples
/pylit.py.txt
: ..
/pylit.py
21 pylit ..
/pylit.py examples
/pylit.py.txt
23 examples
/pylit_test.py.txt
: ..
/test/pylit_test.py
24 pylit
--comment-string
='## ' ..
/test/pylit_test.py examples
/pylit_test.py.txt
26 examples
/conf.py.txt
: conf.py
27 pylit conf.py examples
/conf.py.txt
29 examples
: examples
/pylit.py.txt examples
/pylit_test.py.txt examples
/conf.py.txt
32 @echo
"Please use \`make <target>' where <target> is one of"
33 @echo
" html to make standalone HTML files"
34 @echo
" pickle to make pickle files"
35 @echo
" json to make JSON files"
36 @echo
" htmlhelp to make HTML files and a HTML help project"
37 @echo
" latex to make LaTeX files"
38 @echo
" changes to make an overview over all changed/added/deprecated items"
39 @echo
" linkcheck to check all external links for integrity"
40 @echo
" pages to move the HTML files to ../pages/PyLit/"
45 html
: examples logo
/pylit-bold-framed.png
47 mkdir
-p
$(HTMLDIR
) build
/doctrees
48 $(SPHINXBUILD
) -b html
$(ALLSPHINXOPTS
) $(HTMLDIR
)
50 @echo
"Copying some source files"
51 cp
$(INDIR
)/download
/pylit
$(HTMLDIR
)/download
/
52 # cp $(INDIR)/examples/*.txt $(HTMLDIR)/examples/
53 # cp $(INDIR)/examples/*.py $(HTMLDIR)/examples/
54 # cp $(INDIR)/examples/*.sty $(HTMLDIR)/examples/
55 # cp $(INDIR)/examples/*.css $(HTMLDIR)/examples/
56 cp
$(INDIR
)/tutorial
/*.py
$(HTMLDIR
)/tutorial
/
57 cp
$(INDIR
)/tutorial
/*.py.txt
$(HTMLDIR
)/tutorial
/
60 @echo
"Build finished. The HTML pages are in $(HTMLDIR)."
63 mkdir
-p build
/pickle build
/doctrees
64 $(SPHINXBUILD
) -b pickle
$(ALLSPHINXOPTS
) build
/pickle
66 @echo
"Build finished; now you can process the pickle files."
71 mkdir
-p build
/json build
/doctrees
72 $(SPHINXBUILD
) -b json
$(ALLSPHINXOPTS
) build
/json
74 @echo
"Build finished; now you can process the JSON files."
77 mkdir
-p build
/htmlhelp build
/doctrees
78 $(SPHINXBUILD
) -b htmlhelp
$(ALLSPHINXOPTS
) build
/htmlhelp
80 @echo
"Build finished; now you can run HTML Help Workshop with the" \
81 ".hhp project file in build/htmlhelp."
84 mkdir
-p build
/latex build
/doctrees
85 $(SPHINXBUILD
) -b latex
$(ALLSPHINXOPTS
) build
/latex
87 @echo
"Build finished; the LaTeX files are in build/latex."
88 @echo
"Run \`make all-pdf' or \`make all-ps' in that directory to" \
89 "run these through (pdf)latex."
92 mkdir
-p build
/changes build
/doctrees
93 $(SPHINXBUILD
) -b changes
$(ALLSPHINXOPTS
) build
/changes
95 @echo
"The overview file is in build/changes."
98 mkdir
-p build
/linkcheck build
/doctrees
99 $(SPHINXBUILD
) -b linkcheck
$(ALLSPHINXOPTS
) build
/linkcheck
101 @echo
"Link check complete; look for any errors in the above output " \
102 "or in build/linkcheck/output.txt."
105 cp
$(HTMLDIR
)/*.html
$(HTMLDIR
)/*.js
$(PAGESDIR
)
106 cp
-r
$(HTMLDIR
)/_static
$(HTMLDIR
)/download \
107 $(HTMLDIR
)/examples
$(HTMLDIR
)/tutorial
$(PAGESDIR
)