7 R2BFLAGS := --halt=2 --lang es --codeblocks-use-pygments \
8 --input-encoding=utf-8 --output-encoding=utf-8 \
11 R2BFILTER := sed '/\\usepackage\[scaled=\.90\]{helvet}/d; \
12 s/\\usepackage\[utf8\]{inputenc}/\\usepackage[utf8x]{inputenc}/; \
13 s/\\institute{\(.*\)}/\\institute[LUGFI]{\1}/m'
16 PDFLATEXFLAGS := -halt-on-error -file-line-error
18 # Verbosity flag (empty show nice messages, non-empty use make messages)
19 # When used internal, $V expand to @ is nice messages should be printed, this
20 # way it's easy to add $V in front of commands that should be silenced when
21 # displaying the nice messages.
22 override V := $(if $V,,@)
24 override V := $(if $(findstring s,$(MAKEFLAGS)),,$V)
26 targets := presentacion.pdf
31 presentacion.pdf: $O/diff.pdf $O/merge.pdf
34 $(if $V,@echo "$(PDFLATEX) $< > $@")
35 $V cd $O && $(PDFLATEX) $(PDFLATEXFLAGS) $(<F) $(if $V,> $@.log)
36 $V cd $O && $(PDFLATEX) $(PDFLATEXFLAGS) $(<F) $(if $V,>> $@.log)
39 $O/%.tex: %.rst $(R2B) Makefile
40 $(if $V,@echo "$(R2B) $< > $@")
41 $V $(PYTHON) $(R2B) $(R2BFLAGS) $< | $(R2BFILTER) > $@
54 __dummy := $(shell mkdir -p $O/img)