blob: ce5917df4ebdc3e7492e571c6b768b6ae7bec044 (
plain)
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
69
70
71
72
|
$NetBSD: patch-af,v 1.1 2005/11/23 06:20:36 minskim Exp $
--- ruby/Makefile.in.orig 2004-05-12 20:36:57.000000000 +0900
+++ ruby/Makefile.in
@@ -21,7 +21,7 @@ MYDOCS = rbspex.html rbspex-ja.html rbap
prefix = @prefix@
exec_prefix = @exec_prefix@
MYBINDIR = @bindir@
-MYDATADIR = @datadir@/$(PACKAGE)/ruby
+MYDATADIR = @datadir@/doc/$(PACKAGE)/ruby
DESTDIR =
# Building binaries
@@ -35,9 +35,9 @@ RUNENV = LD_LIBRARY_PATH=.:..:../..:/usr
all :
- cd depot && [ -f Makefile ] || $(RUNENV) ruby extconf.rb ; $(RUNENV) make
- cd curia && [ -f Makefile ] || $(RUNENV) ruby extconf.rb ; $(RUNENV) make
- cd villa && [ -f Makefile ] || $(RUNENV) ruby extconf.rb ; $(RUNENV) make
+ cd depot && [ -f Makefile ] || $(RUNENV) ${RUBY} extconf.rb ; $(RUNENV) make
+ cd curia && [ -f Makefile ] || $(RUNENV) ${RUBY} extconf.rb ; $(RUNENV) make
+ cd villa && [ -f Makefile ] || $(RUNENV) ${RUBY} extconf.rb ; $(RUNENV) make
@printf '\n'
@printf '#================================================================\n'
@printf '# Ready to install.\n'
@@ -69,7 +69,7 @@ install :
uninstall :
- pprefix=`ruby -e '$$:.each() do |path| ; printf("%s\n", path) ; end' | grep -v '^\.'` ; \
+ pprefix=`${RUBY} -e '$$:.each() do |path| ; printf("%s\n", path) ; end' | grep -v '^\.'` ; \
find $$pprefix | sort | uniq | \
egrep '(mod_depot\.so|depot\.rb|mod_curia\.so|curia\.rb|mod_villa\.so|villa\.rb)' | \
xargs rm -f
@@ -85,27 +85,27 @@ check :
sync ; sync
cd depot && rm -rf casket
cd depot && \
- $(RUNENV) ruby -w -Ilib rbdptest write casket 10000 1000
+ $(RUNENV) ${RUBY} -w -Ilib rbdptest write casket 10000 1000
cd depot && \
- $(RUNENV) ruby -w -Ilib rbdptest read casket
+ $(RUNENV) ${RUBY} -w -Ilib rbdptest read casket
cd depot && \
- $(RUNENV) ruby -w -Ilib rbdptest misc casket
+ $(RUNENV) ${RUBY} -w -Ilib rbdptest misc casket
cd depot && rm -rf casket
cd curia && rm -rf casket
cd curia && \
- $(RUNENV) ruby -w -Ilib rbcrtest write casket 10000 1000 10
+ $(RUNENV) ${RUBY} -w -Ilib rbcrtest write casket 10000 1000 10
cd curia && \
- $(RUNENV) ruby -w -Ilib rbcrtest read casket
+ $(RUNENV) ${RUBY} -w -Ilib rbcrtest read casket
cd curia && \
- $(RUNENV) ruby -w -Ilib rbcrtest misc casket
+ $(RUNENV) ${RUBY} -w -Ilib rbcrtest misc casket
cd curia && rm -rf casket
cd villa && rm -rf casket
cd villa && \
- $(RUNENV) ruby -w -Ilib rbvltest write casket 10000
+ $(RUNENV) ${RUBY} -w -Ilib rbvltest write casket 10000
cd villa && \
- $(RUNENV) ruby -w -Ilib rbvltest read casket
+ $(RUNENV) ${RUBY} -w -Ilib rbvltest read casket
cd villa && \
- $(RUNENV) ruby -w -Ilib rbvltest misc casket
+ $(RUNENV) ${RUBY} -w -Ilib rbvltest misc casket
cd villa && rm -rf casket
@printf '\n'
@printf '#================================================================\n'
|