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/, \\py@release//' build/latex/sphinx.sty
28 @cp manual.cls build/latex/
30 @echo "Build finished; the LaTeX files are in build/latex."
31 @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
32 "run these through (pdf)latex."