configurator: reloading with unset values restores default
[unicorn.git] / local.mk.sample
blobc950d87dfbada7796c697346be0d5e1c3bca31ec
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
3 # if it is present.
5 # This is depends on a bunch of GNU-isms from bash, sed, touch.
7 DLEXT := so
9 # Avoid loading rubygems to speed up tests because gmake is
10 # fork+exec heavy with Ruby.
11 prefix = $(HOME)
13 # XXX clean this up
14 ifeq ($(r192),)
15   ifeq ($(r19),)
16     ifeq ($(rbx),)
17       ifeq ($(r186),)
18         RUBY := $(prefix)/bin/ruby
19       else
20         prefix := $(prefix)/r186-p114
21         export PATH := $(prefix)/bin:$(PATH)
22         RUBY := $(prefix)/bin/ruby
23       endif
24     else
25       prefix := $(prefix)/rbx
26       export PATH := $(prefix)/bin:$(PATH)
27       RUBY := $(prefix)/bin/rbx
28     endif
29   else
30     prefix := $(prefix)/ruby-1.9
31     export PATH := $(prefix)/bin:$(PATH)
32     RUBY := $(prefix)/bin/ruby --disable-gems
33   endif
34 else
35   prefix := $(prefix)/ruby-1.9.2
36   export PATH := $(prefix)/bin:$(PATH)
37   RUBY := $(prefix)/bin/ruby --disable-gems
38 endif
40 # FIXME: use isolate more
41 ifndef RUBYLIB
42   gems := rack-1.1.0
43   gem_paths := $(addprefix $(HOME)/lib/ruby/gems/1.8/gems/,$(gems))
44   sp :=
45   sp +=
46   export RUBYLIB := $(subst $(sp),:,$(addsuffix /lib,$(gem_paths)))
47 endif
49 # pipefail is THE reason to use bash (v3+) or never revisions of ksh93
50 # SHELL := /bin/bash -e -o pipefail
51 SHELL := /bin/ksh93 -e -o pipefail
53 full-test: test-18 test-191 test-192 test-rbx test-186
55 # FIXME: keep eye on Rubinius activity and wait for fixes from upstream
56 # so we don't need RBX_SKIP anymore
57 test-rbx: export RBX_SKIP := 1
58 test-rbx: export RUBY := $(RUBY)
59 test-rbx:
60         $(MAKE) test test-integration rbx=T 2>&1 |sed -e 's!^!rbx !'
61 test-186:
62         $(MAKE) test-all r186=1 2>&1 |sed 's!^!1.8.6 !'
63 test-18:
64         $(MAKE) test-all 2>&1 |sed 's!^!1.8 !'
65 test-191:
66         $(MAKE) test-all r19=1 2>&1 |sed 's!^!1.9.1 !'
67 test-192:
68         $(MAKE) test-all r192=1 2>&1 |sed 's!^!1.9.2 !'