-informe.$(html): informe.$(rst)
- @echo "Generando $@..."
- @rst2html $(rstopts) $(htmlopts) "$(basename $<).$(rst)" > "$@"
-
-informe.pdf: informe.$(latex)
- @echo "Generando $@..."
- @pdflatex "$(basename $<).$(latex)" > /dev/null
- @pdflatex "$(basename $<).$(latex)" > /dev/null
-
-# Informe para imprimir
-informe-print.$(latex): informe.$(rst)
- @echo "Generando $@..."
- @rst2latex $(rstopts) $(latexopts) $(printopts) "$(basename $<).$(rst)" > "$@"
-
-informe-print.pdf: informe-print.$(latex)
- @echo "Generando $@..."
- @pdflatex "$(basename $<).$(latex)" > /dev/null
- @pdflatex "$(basename $<).$(latex)" > /dev/null
-
-clean-tmp:
- @$(RM) $(addsuffix .aux, $(docnames)) $(addsuffix .out,$(docnames))
- @$(RM) $(addsuffix .log, $(docnames)) $(addsuffix .toc, $(docnames)) texput.log
- @$(RM) texput.log
-
-clean: clean-tmp
- @$(RM) -fv $(targets) $(addsuffix .latex, $(docnames))
-
-.PHONY: clean all
+latex:
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) build/latex
+ @sed -i 's/\\chapter{Glosario}/\\chapter*{Glosario}\n\\addcontentsline{toc}{chapter}{Glosario}/' build/latex/tesis.tex
+ @cp manual.cls build/latex/
+ @echo
+ @echo "Build finished; the LaTeX files are in build/latex."
+ @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
+ "run these through (pdf)latex."