]> git.llucax.com Git - z.facultad/75.00/informe.git/blob - Makefile
4f9c3902dd7c867cf3977d85f63ea8744ae5c8c9
[z.facultad/75.00/informe.git] / Makefile
1 # Makefile for Sphinx documentation
2 #
3
4 # You can set these variables from the command line.
5 SPHINXOPTS    =
6 SPHINXBUILD   = sphinx-build
7 PAPER         =
8
9 # Internal variables.
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
13
14 .PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
15
16 all: pdf
17
18 pdf: latex
19         @$(MAKE) -C build/latex all-pdf
20
21 clean:
22         -rm -rf build/*
23
24 latex:
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/
29         @echo
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."
33