From 93842bb5ef9e5da1d750e41614a99024dc7a0399 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 4 Jun 2010 06:36:28 +0000 Subject: tests: make -C $MODEL.tNNNN-foo.sh work again out-of-the box It was missing dependencies on the first run --- t/GNUmakefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 't/GNUmakefile') diff --git a/t/GNUmakefile b/t/GNUmakefile index 955f273..2e86d24 100644 --- a/t/GNUmakefile +++ b/t/GNUmakefile @@ -100,13 +100,14 @@ $(libs): test_isolate.rb mkdir -p $(@D) $(RUBY) $< > $@+ mv $@+ $@ -$(T): $(libs) $(deps) test-bin-$(RUBY_VERSION)/rainbows trash/.gitignore +t_deps := $(libs) $(deps) test-bin-$(RUBY_VERSION)/rainbows trash/.gitignore +$(T): $(t_deps) $(MODEL_T): export model = $(firstword $(subst ., ,$@)) $(MODEL_T): script = $(subst $(model).,,$@) $(MODEL_T): export RUBY := $(RUBY) $(MODEL_T): export PATH := $(CURDIR)/test-bin-$(RUBY_VERSION):$(PATH) -$(MODEL_T): +$(MODEL_T): $(t_deps) RUBYLIB=$(rainbows_lib):$$(cat $(libs)) \ $(TRACER) $(SHELL) $(SH_TEST_OPTS) $(script) $(TEST_OPTS) -- cgit v1.2.3-24-ge0c7