O := .tmp R2B := ./rst2beamer.py R2BTHEME := Darmstadt 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' DOT := dot DOTFLAGS := AAFIG := aafigure AAFIGFLAGS := --proportional PDFLATEX := pdflatex PDFLATEXFLAGS := -halt-on-error -file-line-error imgs := $O/img/mark-sweep-0.pdf \ $(patsubst %.dot,$O/%.pdf,$(wildcard img/mark-sweep-*.dot)) \ $O/img/heap.pdf presentacion.pdf: $O/presentacion.tex $(imgs) @echo "$(PDFLATEX) $< > $@" @cd $O && $(PDFLATEX) $(PDFLATEXFLAGS) $( $@.log @cd $O && $(PDFLATEX) $(PDFLATEXFLAGS) $(> $@.log @mv $O/$@ $@ $O/presentacion.tex: presentacion.rst $(R2B) @echo "$(R2B) $< > $@" @$(R2B) $(R2BFLAGS) $< | $(R2BFILTER) > $@ $O/img/%.pdf: img/%.dot @echo "$(DOT) $< > $@" @$(DOT) $(DOTFLAGS) -Tpdf -o $@ $< @#pdftops mark-sweep-$i.pdf && ps2pdf14 mark-sweep-$i.ps && rm mark-sweep-$i.ps $O/img/%.pdf: img/%.aafig @echo "$(AAFIG) $< > $@" @$(AAFIG) $(AAFIGFLAGS) -t pdf -o $@ $< $O/img/%.pdf: img/%.pdf @echo "cp $< > $@" @cp $< $@ $O/heap.pdf: AAFIGFLAGS += -s 1.4 -a 0.8 .PHONY: clean clean: $(RM) -r $O .PHONY: clean-all clean-all: clean $(RM) presentacion.pdf __dummy := $(shell mkdir -p $O/img)