1 # this is the local.mk file used by Eric Wong on his dev boxes.
2 # GNUmakefile will source local.mk in the top-level source tree
5 # This is depends on a bunch of GNU-isms from bash, sed, touch.
9 # Avoid loading rubygems to speed up tests because gmake is
10 # fork+exec heavy with Ruby.
15 RUBY := $(prefix)/bin/ruby
17 prefix := $(prefix)/rbx
18 export PATH := $(prefix)/bin:$(PATH)
19 RUBY := $(prefix)/bin/rbx
22 prefix := $(prefix)/ruby-1.9
23 export PATH := $(prefix)/bin:$(PATH)
24 RUBY := $(prefix)/bin/ruby --disable-gems
27 prefix := $(prefix)/ruby-1.9.2
28 export PATH := $(prefix)/bin:$(PATH)
29 RUBY := $(prefix)/bin/ruby --disable-gems
32 # FIXME: use isolate more
35 gem_paths := $(addprefix $(HOME)/lib/ruby/gems/1.8/gems/,$(gems))
38 export RUBYLIB := $(subst $(sp),:,$(addsuffix /lib,$(gem_paths)))
41 # pipefail is THE reason to use bash (v3+) or never revisions of ksh93
42 # SHELL := /bin/bash -e -o pipefail
43 SHELL := /bin/ksh93 -e -o pipefail
45 full-test: test-18 test-191 test-192 test-rbx
47 # FIXME: keep eye on Rubinius activity and wait for fixes from upstream
48 # so we don't need RBX_SKIP anymore
49 test-rbx: export RBX_SKIP := 1
50 test-rbx: export RUBY := $(RUBY)
52 $(MAKE) test test-integration rbx=T 2>&1 |sed -e 's!^!rbx !'
54 $(MAKE) test-all 2>&1 |sed 's!^!1.8 !'
56 $(MAKE) test-all r19=1 2>&1 |sed 's!^!1.9.1 !'
58 $(MAKE) test-all r192=1 2>&1 |sed 's!^!1.9.2 !'