+ $(AAFIG) $(AAFIGFLAGS) -t pdf -o $@ $<
+
+$O/img/norm-hist-%.csv: img/raw-hist-%.csv
+ $(if $V,@echo "norm $< > $@")
+ $V $(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))
+ $(if $V,@echo "plot $< > $@")
+ $V $(TEMPLITE) "progs=($(patsubst %,'%'$(comma),$(PROGS))), " \
+ "files=($(patsubst %,'%'$(comma),$^))" \
+ < histogram-plot.tpl.gpi | $(GNUPLOT) > $@
+
+$O/img/norm-hist-%.pdf: $O/img/norm-hist-%.eps
+ $(EPSTOPDF) --outfile=$@ $<