From 25a87df81e3eb9b6e0bff19a2197165b3c3ceb2a Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Thu, 9 Dec 2010 14:01:30 +0100 Subject: [PATCH] make plot creates only missing graphs make plotall recreates everything --- gw-tests/Makefile | 15 ++++++++++++--- gw-tests/lib.sh | 2 +- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/gw-tests/Makefile b/gw-tests/Makefile index ac9760f..2ede079 100644 --- a/gw-tests/Makefile +++ b/gw-tests/Makefile @@ -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: diff --git a/gw-tests/lib.sh b/gw-tests/lib.sh index 4c4274d..5108f8d 100644 --- a/gw-tests/lib.sh +++ b/gw-tests/lib.sh @@ -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 -- 2.39.2