about summary refs log tree commit homepage
path: root/GNUmakefile
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-04-18 21:33:40 -0700
committerEric Wong <normalperson@yhbt.net>2010-04-19 01:22:39 -0700
commit98622a1c291277ff124a586929c675e9ae67692e (patch)
treef865bac26ccbcc0a52e18ea201fb3dfbac955dc0 /GNUmakefile
parentb6dcf1343a379f0fb5de5cc551dbbf85da2b4cdf (diff)
downloadrainbows-98622a1c291277ff124a586929c675e9ae67692e.tar.gz
It should make life easier when dealing with and testing
complex dependencies, especially ones like Cramp which
depend on prerelease versions of gems.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
index b11ecf9..42c2162 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -3,6 +3,7 @@ all::
 RUBY = ruby
 RAKE = rake
 GIT_URL = git://git.bogomips.org/rainbows.git
+ISOLATE_CONFIG = config/isolate.rb
 
 GIT-VERSION-FILE: .FORCE-GIT-VERSION-FILE
         @./GIT-VERSION-GEN
@@ -15,6 +16,12 @@ ifeq ($(RUBY_VERSION),)
   RUBY_VERSION := $(shell $(RUBY) -e 'puts RUBY_VERSION')
 endif
 
+# rake takes forever to start
+isolate: tmp/gems/$(RUBY_VERSION)/.isolate
+tmp/gems/$(RUBY_VERSION)/.isolate: $(ISOLATE_CONFIG)
+        ISOLATE_CONFIG=$(ISOLATE_CONFIG) $(RAKE) isolate
+        > $@
+
 base_bins := rainbows
 bins := $(addprefix bin/, $(base_bins))
 man1_bins := $(addsuffix .1, $(base_bins))