]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/Makefile
make plot creates only missing graphs
[can-benchmark.git] / gw-tests / Makefile
index ac9760f2c2ff244c3c789c0375bfc5777dfa7ae2..2ede079d389ea87a53b4097c1d6dbd6e2a6c7f7d 100644 (file)
@@ -10,9 +10,18 @@ TEST_FLAGS = -P -t all
 $(T):%:
        ./$@ $(TEST_FLAGS)
 
-.PHONY: plot
-plot:
-       find results -name plot.sh -exec '{}' -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-%)
+run-%: %
+       $* -X
+
+
 
 .PHONY: html
 html: