]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
make plot creates only missing graphs
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 9 Dec 2010 13:01:30 +0000 (14:01 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 9 Dec 2010 13:01:30 +0000 (14:01 +0100)
make plotall recreates everything

gw-tests/Makefile
gw-tests/lib.sh

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:
index 4c4274d301d8ec8576b57b8263ec0aa2c37a8fc9..5108f8d7d0b3568193a6585869bee86d4e5e78d3 100644 (file)
@@ -121,8 +121,8 @@ _run() {
        mkdir -p $dir
        script=$(echo $dir | sed -e 's/[^/]*/../g')/${test}.sh
        cd $dir
-       echo "Working directory: $dir"
        if [[ ! "$OPT_PLOT_ONLY" ]]; then
+           echo "Working directory: $dir"
            _measure
        fi
        if [[ ! "$OPT_PLOT_DISABLE" ]]; then