+$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=$@ $<
+