about summary refs log tree commit homepage
path: root/t/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 't/GNUmakefile')
-rw-r--r--t/GNUmakefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/t/GNUmakefile b/t/GNUmakefile
index 9af9551..8f2668c 100644
--- a/t/GNUmakefile
+++ b/t/GNUmakefile
@@ -17,12 +17,11 @@ endif
 RUBY_ENGINE := $(shell $(RUBY) -e 'puts((RUBY_ENGINE rescue "ruby"))')
 export RUBY_ENGINE
 
-isolate_libs := ../tmp/isolate/.$(RUBY_ENGINE)-$(RUBY_VERSION).libs
-MYLIBS := $(shell cat $(isolate_libs))
-ifeq ($(MY_LIBS),)
-  ignore := $(shell cd .. && $(RUBY) ./script/isolate_for_tests)
-  MYLIBS := $(shell cat $(isolate_libs))
-endif
+isolate_libs := ../tmp/isolate/$(RUBY_ENGINE)-$(RUBY_VERSION).mk
+$(isolate_libs): ../script/isolate_for_tests
+        @cd .. && $(RUBY) script/isolate_for_tests
+-include $(isolate_libs)
+MYLIBS := $(RUBYLIB):$(ISOLATE_LIBS)
 
 T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)