]> git.llucax.com Git - z.facultad/75.00/informe.git/blob - Makefile
59120265a80e23d8a0aec40b415a8eec8b38dff9
[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         @sed -i '/-makeindex/d' build/latex/Makefile
29         @cp manual.cls build/latex/
30         @./bibsort.py
31         @echo
32         @echo "Build finished; the LaTeX files are in build/latex."
33         @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
34               "run these through (pdf)latex."
35