6 R2BFLAGS := --halt=2 --lang es --codeblocks-use-pygments \
7 --input-encoding=utf-8 --output-encoding=utf-8 \
10 R2BFILTER := sed '/\\usepackage\[scaled=\.90\]{helvet}/d'
16 AAFIGFLAGS := --proportional
19 PDFLATEXFLAGS := -halt-on-error -file-line-error
21 imgs := $O/img/mark-sweep-0.pdf \
22 $(patsubst %.dot,$O/%.pdf,$(wildcard img/mark-sweep-*.dot)) \
25 presentacion.pdf: $O/presentacion.tex $(imgs)
26 @echo "$(PDFLATEX) $< > $@"
27 @cd $O && $(PDFLATEX) $(PDFLATEXFLAGS) $(<F) > $@.log
28 @cd $O && $(PDFLATEX) $(PDFLATEXFLAGS) $(<F) >> $@.log
31 $O/presentacion.tex: presentacion.rst $(R2B)
32 @echo "$(R2B) $< > $@"
33 @$(R2B) $(R2BFLAGS) $< | $(R2BFILTER) > $@
35 $O/img/%.pdf: img/%.dot
36 @echo "$(DOT) $< > $@"
37 @$(DOT) $(DOTFLAGS) -Tpdf -o $@ $<
38 @#pdftops mark-sweep-$i.pdf && ps2pdf14 mark-sweep-$i.ps && rm mark-sweep-$i.ps
40 $O/img/%.pdf: img/%.aafig
41 @echo "$(AAFIG) $< > $@"
42 @$(AAFIG) $(AAFIGFLAGS) -t pdf -o $@ $<
44 $O/img/%.pdf: img/%.pdf
48 $O/heap.pdf: AAFIGFLAGS += -s 1.4 -a 0.8
56 $(RM) presentacion.pdf
58 __dummy := $(shell mkdir -p $O/img)