]> git.llucax.com Git - z.facultad/75.00/informe.git/blobdiff - Makefile
Eliminar comentarios de cabecera obsoletos
[z.facultad/75.00/informe.git] / Makefile
index af4ea81a18d278d2edaa069bc8503da9bc6cea1f..59120265a80e23d8a0aec40b415a8eec8b38dff9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,51 +1,35 @@
-
-rst=rst
-latex=latex
-html=html
-
-rstopts=--section-subtitles --language=es
-latexopts=--use-latex-footnotes --use-latex-citations --use-latex-docinfo \
-         --use-latex-toc --documentclass=book --use-verbatim-when-possible
-printopts=--hyperlink-color=0
-htmlopts=--footnote-references=superscript --cloak-email-addresses
-
-targets=informe.pdf informe.$(html) #informe-print.pdf
-
-docnames=informe informe-print
-
-all: $(targets) clean-tmp
-
-# Informe
-informe.$(latex): informe.$(rst)
-       @echo "Generando $@..."
-       @rst2latex $(rstopts) $(latexopts) "$(basename $<).$(rst)" > "$@"
-
-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
+# Makefile for Sphinx documentation
+#
+
+# You can set these variables from the command line.
+SPHINXOPTS    =
+SPHINXBUILD   = sphinx-build
+PAPER         =
+
+# Internal variables.
+PAPEROPT_a4     = -D latex_paper_size=a4
+PAPEROPT_letter = -D latex_paper_size=letter
+ALLSPHINXOPTS   = -d build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
+
+.PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
+
+all: pdf
+
+pdf: latex
+       @$(MAKE) -C build/latex all-pdf
+
+clean:
+       -rm -rf build/*
+
+latex:
+       $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) build/latex
+       @sed -i 's/\\chapter{Glosario}/\\chapter*{Glosario}\n\\addcontentsline{toc}{chapter}{Glosario}/' build/latex/tesis.tex
+       @sed -i 's/, \\py@release//' build/latex/sphinx.sty
+       @sed -i '/-makeindex/d' build/latex/Makefile
+       @cp manual.cls build/latex/
+       @./bibsort.py
+       @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."