about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-10-05 21:38:47 +0000
committerEric Wong <normalperson@yhbt.net>2010-10-05 21:38:47 +0000
commitc2975b85b9378797631d3ab133cac371f9fadf54 (patch)
tree507e07c5bc08c1ed8700b5a17b9c955a1369c815
parentec1315c9e9175d755dfd7b4acb8398fa7c7a924e (diff)
downloadunicorn-c2975b85b9378797631d3ab133cac371f9fadf54.tar.gz
We don't want to waste time and bandwidth.
-rw-r--r--GNUmakefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 0b3238c..cee6042 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -26,8 +26,9 @@ RUBY_ENGINE := $(shell $(RUBY) -e 'puts((RUBY_ENGINE rescue "ruby"))')
 
 isolate_libs := tmp/isolate/.$(RUBY_ENGINE)-$(RUBY_VERSION).libs
 MYLIBS = $(RUBYLIB):$(shell cat $(isolate_libs) 2>/dev/null || \
-                      ($(RUBY) ./script/isolate_for_tests >/dev/null && \
-                      cat $(isolate_libs) 2>/dev/null))
+                      (test -f $(isolate_libs) && \
+                       $(RUBY) ./script/isolate_for_tests >/dev/null && \
+                       cat $(isolate_libs) 2>/dev/null))
 
 echo:
         @echo $(MYLIBS)