unicorn.git  about / heads / tags
Rack HTTP server for Unix and fast clients
blob c950d87dfbada7796c697346be0d5e1c3bca31ec 1881 bytes (raw)
$ git show v1.1.6:local.mk.sample	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
 
# this is the local.mk file used by Eric Wong on his dev boxes.
# GNUmakefile will source local.mk in the top-level source tree
# if it is present.
#
# This is depends on a bunch of GNU-isms from bash, sed, touch.

DLEXT := so

# Avoid loading rubygems to speed up tests because gmake is
# fork+exec heavy with Ruby.
prefix = $(HOME)

# XXX clean this up
ifeq ($(r192),)
  ifeq ($(r19),)
    ifeq ($(rbx),)
      ifeq ($(r186),)
        RUBY := $(prefix)/bin/ruby
      else
        prefix := $(prefix)/r186-p114
        export PATH := $(prefix)/bin:$(PATH)
        RUBY := $(prefix)/bin/ruby
      endif
    else
      prefix := $(prefix)/rbx
      export PATH := $(prefix)/bin:$(PATH)
      RUBY := $(prefix)/bin/rbx
    endif
  else
    prefix := $(prefix)/ruby-1.9
    export PATH := $(prefix)/bin:$(PATH)
    RUBY := $(prefix)/bin/ruby --disable-gems
  endif
else
  prefix := $(prefix)/ruby-1.9.2
  export PATH := $(prefix)/bin:$(PATH)
  RUBY := $(prefix)/bin/ruby --disable-gems
endif

# FIXME: use isolate more
ifndef RUBYLIB
  gems := rack-1.1.0
  gem_paths := $(addprefix $(HOME)/lib/ruby/gems/1.8/gems/,$(gems))
  sp :=
  sp +=
  export RUBYLIB := $(subst $(sp),:,$(addsuffix /lib,$(gem_paths)))
endif

# pipefail is THE reason to use bash (v3+) or never revisions of ksh93
# SHELL := /bin/bash -e -o pipefail
SHELL := /bin/ksh93 -e -o pipefail

full-test: test-18 test-191 test-192 test-rbx test-186

# FIXME: keep eye on Rubinius activity and wait for fixes from upstream
# so we don't need RBX_SKIP anymore
test-rbx: export RBX_SKIP := 1
test-rbx: export RUBY := $(RUBY)
test-rbx:
	$(MAKE) test test-integration rbx=T 2>&1 |sed -e 's!^!rbx !'
test-186:
	$(MAKE) test-all r186=1 2>&1 |sed 's!^!1.8.6 !'
test-18:
	$(MAKE) test-all 2>&1 |sed 's!^!1.8 !'
test-191:
	$(MAKE) test-all r19=1 2>&1 |sed 's!^!1.9.1 !'
test-192:
	$(MAKE) test-all r192=1 2>&1 |sed 's!^!1.9.2 !'

git clone https://yhbt.net/unicorn.git