-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
37 lines (25 loc) · 636 Bytes
/
Makefile
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
RVM := 1.25.26
BUNDLER := 1.6.2
CC := $(shell basename $(shell which clang gcc | head -1))
.PHONY: rvm test
all: ready
ready:
@git submodule update --init --recursive
rvm:
@libexec/build-rvm $(RVM)
binary:
@libexec/build-ruby 2.0.0 --with-gcc=$(CC) --with-openssl-dir=$(PKG_HOME)
@libexec/build-ruby 2.1.2 --with-gcc=$(CC) --with-openssl-dir=$(PKG_HOME)
install: 2.0.0 2.1.2
@true
test:
@cd test && ./run 2.0.0
@cd test && ./run 2.1.2
binary_jruby:
@libexec/build-ruby jruby
2.0.0:
@libexec/install-ruby 2.0.0 $(BUNDLER)
2.1.2:
@libexec/install-ruby 2.1.2 $(BUNDLER)
jruby:
@libexec/install-ruby jruby $(BUNDLER)