6 rstopts=--section-subtitles --language=es
7 latexopts=--use-latex-footnotes --use-latex-citations --use-latex-docinfo \
8 --use-latex-toc --documentclass=book --use-verbatim-when-possible
9 printopts=--hyperlink-color=0
10 htmlopts=--footnote-references=superscript --cloak-email-addresses
12 targets=informe.pdf informe.$(html) #informe-print.pdf
14 docnames=informe informe-print
16 all: $(targets) clean-tmp
19 informe.$(latex): informe.$(rst)
20 @echo "Generando $@..."
21 @rst2latex $(rstopts) $(latexopts) "$(basename $<).$(rst)" > "$@"
23 informe.$(html): informe.$(rst)
24 @echo "Generando $@..."
25 @rst2html $(rstopts) $(htmlopts) "$(basename $<).$(rst)" > "$@"
27 informe.pdf: informe.$(latex)
28 @echo "Generando $@..."
29 @pdflatex "$(basename $<).$(latex)" > /dev/null
30 @pdflatex "$(basename $<).$(latex)" > /dev/null
32 # Informe para imprimir
33 informe-print.$(latex): informe.$(rst)
34 @echo "Generando $@..."
35 @rst2latex $(rstopts) $(latexopts) $(printopts) "$(basename $<).$(rst)" > "$@"
37 informe-print.pdf: informe-print.$(latex)
38 @echo "Generando $@..."
39 @pdflatex "$(basename $<).$(latex)" > /dev/null
40 @pdflatex "$(basename $<).$(latex)" > /dev/null
43 @$(RM) $(addsuffix .aux, $(docnames)) $(addsuffix .out,$(docnames))
44 @$(RM) $(addsuffix .log, $(docnames)) $(addsuffix .toc, $(docnames)) texput.log
48 @$(RM) -fv $(targets) $(addsuffix .latex, $(docnames))