1 # Makefile for Sphinx documentation
4 # You can set these variables from the command line.
6 SPHINXBUILD = sphinx-build
10 PAPEROPT_a4 = -D latex_paper_size=a4
11 PAPEROPT_letter = -D latex_paper_size=letter
12 ALLSPHINXOPTS = -d build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
14 .PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
19 @$(MAKE) -C build/latex all-pdf
25 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) build/latex
26 @sed -i 's/\\chapter{Glosario}/\\chapter*{Glosario}\n\\addcontentsline{toc}{chapter}{Glosario}/' build/latex/tesis.tex
27 @sed -i 's/^\\usepackage{sphinx}$$/\\usepackage[final]{varioref} \\usepackage{sphinx}/' build/latex/tesis.tex
28 @sed -i 's/, \\py@release//' build/latex/sphinx.sty
29 @sed -i '/-makeindex/d' build/latex/Makefile
30 @cp manual.cls build/latex/
33 @echo "Build finished; the LaTeX files are in build/latex."
34 @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
35 "run these through (pdf)latex."