X-Git-Url: https://git.llucax.com/z.facultad/75.00/presentacion.git/blobdiff_plain/3b890a0dc4b9aa8930e1bd2aedf1bec61f8b3af1..681b40c90a8081f3392ec89c381739f26ba0ca81:/Makefile diff --git a/Makefile b/Makefile index cb2a467..57cd1c5 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,8 @@ R2BFLAGS := --halt=2 --lang es --codeblocks-use-pygments \ --input-encoding=utf-8 --output-encoding=utf-8 \ --overlaybullets= \ --theme $(R2BTHEME) -R2BFILTER := sed '/\\usepackage\[scaled=\.90\]{helvet}/d' +R2BFILTER := sed '/\\usepackage\[scaled=\.90\]{helvet}/d; \ + s/\\usepackage\[utf8\]{inputenc}/\\usepackage[utf8x]{inputenc}/' DOT := dot DOTFLAGS := @@ -45,25 +46,19 @@ targets := presentacion.pdf notas.pdf .PHONY: all all: $(targets) -presentacion.pdf: $O/presentacion.tex $(imgs) +%.pdf: $O/%.tex $(if $V,@echo "$(PDFLATEX) $< > $@") $V cd $O && $(PDFLATEX) $(PDFLATEXFLAGS) $( $@.log) $V cd $O && $(PDFLATEX) $(PDFLATEXFLAGS) $(> $@.log) $V mv $O/$@ $@ -notas.pdf: $O/notas.tex - $(if $V,@echo "$(PDFLATEX) $< > $@") - $V cd $O && $(PDFLATEX) $(PDFLATEXFLAGS) $( $@.log) - $V cd $O && $(PDFLATEX) $(PDFLATEXFLAGS) $(> $@.log) - $V mv $O/$@ $@ +presentacion.pdf: $(imgs) -$O/presentacion.tex: presentacion.rst $(R2B) +$O/%.tex: %.rst $(R2B) $(if $V,@echo "$(R2B) $< > $@") $V $(R2B) $(R2BFLAGS) $< | $(R2BFILTER) > $@ -$O/notas.tex: presentacion.rst $(R2B) - $(if $V,@echo "$(R2B) $< > $@") - $V $(R2B) $(R2BFLAGS) --shownotes=only $< | $(R2BFILTER) > $@ +$O/notas.tex: R2BFLAGS += --shownotes=only $O/img/%.pdf: img/%.dot $(DOT) $(DOTFLAGS) -Tpdf -o $@ $<