X-Git-Url: https://git.llucax.com/z.facultad/75.00/presentacion.git/blobdiff_plain/39db1a27fc811db16e2fc51cf39ab3771a7c23a3..2344ba9aca46df3a2522d5fbf10927d229f28cbf:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index b872447..1b34271 100644 --- a/Makefile +++ b/Makefile @@ -18,9 +18,22 @@ AAFIGFLAGS := --proportional PDFLATEX := pdflatex PDFLATEXFLAGS := -halt-on-error -file-line-error +PLOTS := stw pause time mem ncol +PROGS := bigarr conalloc concpu mcore rnddata sbtree split \ + bh bisort em3d tsp voronoi dil + +STATS := ./stats.py +TEMPLITE := ./templite.py + +EPSTOPDF := epstopdf +GNUPLOT := gnuplot + +comma := , + imgs := $O/img/mark-sweep-0.pdf \ $(patsubst %.dot,$O/%.pdf,$(wildcard img/mark-sweep-*.dot)) \ - $O/img/heap.pdf + $O/img/heap.pdf \ + $(patsubst %,$O/img/norm-hist-%.pdf,$(PLOTS)) presentacion.pdf: $O/presentacion.tex $(imgs) @echo "$(PDFLATEX) $< > $@" @@ -41,6 +54,22 @@ $O/img/%.pdf: img/%.aafig @echo "$(AAFIG) $< > $@" @$(AAFIG) $(AAFIGFLAGS) -t pdf -o $@ $< +$O/img/norm-hist-%.csv: img/raw-hist-%.csv + @echo "norm $< > $@" + @awk -F, -v m=`cut -d, -f4 $< | $(STATS) '$$1' '%(max)s'` \ + '{print $$1 "," $$2/m "," $$3/m "," $$4/m "," $$5/m}' \ + $< > $@ + +$O/img/norm-hist-%.eps: $(patsubst %,$O/img/norm-hist-\%-%.csv,$(PROGS)) + @echo "plot $< > $@" + @$(TEMPLITE) "progs=($(patsubst %,'%'$(comma),$(PROGS))), " \ + "files=($(patsubst %,'%'$(comma),$^))" \ + < histogram-plot.tpl.gpi | $(GNUPLOT) > $@ + +$O/img/norm-hist-%.pdf: $O/img/norm-hist-%.eps + @echo "$(EPSTOPDF) $< > $@" + @$(EPSTOPDF) --outfile=$@ $< + $O/img/%.pdf: img/%.pdf @echo "cp $< > $@" @cp $< $@