Zbatery 4.0.0 - another Rainbows! resync
[zbatery.git] / local.mk.sample
blob5b1e025c51e80d15eb3588b1538a1ac0b17e21d1
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 # if you have a decent amount of RAM, setting TMPDIR to be on tmpfs
10 # can significantly improve performance because uploads take a lot
11 # of disk I/O due to the rewindability requirement in Rack.
12 # TMPDIR := /dev/shm
13 # export TMPDIR
15 # Avoid loading rubygems to speed up tests because gmake is
16 # fork+exec heavy with Ruby.
17 prefix = $(HOME)
19 ifeq ($(r192),)
20   ifeq ($(r19),)
21     RUBY := $(prefix)/bin/ruby
22   else
23     prefix := $(prefix)/ruby-1.9
24     export PATH := $(prefix)/bin:$(PATH)
25     RUBY := $(prefix)/bin/ruby --disable-gems
26   endif
27 else
28   prefix := $(prefix)/ruby-1.9.2
29   export PATH := $(prefix)/bin:$(PATH)
30   RUBY := $(prefix)/bin/ruby --disable-gems
31 endif
33 # pipefail is THE reason to use bash (v3+) or never revisions of ksh93
34 # SHELL := /bin/bash -e -o pipefail
35 SHELL := /bin/ksh93 -e -o pipefail
37 # trace execution of tests
38 # TRACER = strace -f -o $(t_pfx).strace -s 100000
39 TRACER = /usr/bin/time -v -o $(t_pfx).time
41 full-test: test-18 test-191 test-192
42 test-18:
43         $(MAKE) test 2>&1 | sed -e 's!^!1.8 !'
44 test-191:
45         $(MAKE) test r19=T 2>&1 | sed -e 's!^!1.9.1 !'
46 test-192:
47         $(MAKE) test r192=T 2>&1 | sed -e 's!^!1.9.2 !'