X-Git-Url: https://git.llucax.com/z.facultad/75.00/presentacion.git/blobdiff_plain/cb85e119316f91a9510313c3d7a9ed4eaf2dbe7c..HEAD:/Makefile diff --git a/Makefile b/Makefile index 38cf5bc..07fdfbf 100644 --- a/Makefile +++ b/Makefile @@ -2,12 +2,14 @@ O := .tmp R2B := ./rst2beamer.py -R2BTHEME := Frankfurt +R2BTHEME := Luca 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}/; \ + s/\\institute{\(.*\)}/\\institute[FIUBA]{\1}/' DOT := dot DOTFLAGS := @@ -40,7 +42,7 @@ override V := $(if $V,,@) # honour make -s flag override V := $(if $(findstring s,$(MAKEFLAGS)),,$V) -targets := presentacion.pdf notas.pdf +targets := presentacion.pdf .PHONY: all all: $(targets) @@ -53,12 +55,10 @@ all: $(targets) presentacion.pdf: $(imgs) -$O/%.tex: %.rst $(R2B) +$O/%.tex: %.rst $(R2B) $O/beamerthemeLuca.sty $(if $V,@echo "$(R2B) $< > $@") $V $(R2B) $(R2BFLAGS) $< | $(R2BFILTER) > $@ -$O/notas.tex: R2BFLAGS += --shownotes=only - $O/img/%.pdf: img/%.dot $(DOT) $(DOTFLAGS) -Tpdf -o $@ $< @@ -80,6 +80,9 @@ $O/img/norm-hist-%.pdf: $O/img/norm-hist-%.eps $O/img/%.pdf: img/%.pdf cp $< $@ +$O/%.sty: %.sty + cp $< $@ + .PHONY: clean clean: $(RM) -r $O