]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/Makefile
Add links to script sources
[can-benchmark.git] / gw-tests / Makefile
index d496337557cf5c2a004bbed2afd0b6220d852679..e1f22ec810f42447431a4210d074c6086065d84b 100644 (file)
@@ -5,15 +5,24 @@ T=$(filter-out lib.sh,$(wildcard *.sh))
 all: $(T) html
        @echo "Run 'make plot' to generate graphs"
 
-TEST_FLAGS = -P
+TEST_FLAGS = -P -t all
 
 $(T):%:
        ./$@ $(TEST_FLAGS)
 
-.PHONY: plot
-plot:
-       $(MAKE) TEST_FLAGS="-p -X"
+.PHONY: plot plotall
+PLOT_SCRIPTS=$(shell find results -name plot.sh)
+THUMBS=$(PLOT_SCRIPTS:%/plot.sh=%/thumb)
+plot: $(THUMBS)
+%/thumb: %/plot.sh
+       $*/plot.sh -X
+
+plotall: $(PLOT_SCRIPTS:%=run-%)
+$(PLOT_SCRIPTS:%=run-%):
+       ${@:run-%=%} -X
+
+
 
 .PHONY: html
 html:
-       ./genhtml.py results
+       ./genhtml/genhtml.py results