summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-02 12:23:34 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-02 12:23:34 +0000
commitde7048ce904132c1e80d3a66ea1ae02cb93c5216 (patch)
tree51a94eeb5ebeb32d2fbda4d29c2eebae49fbea0d /Makefile.in
parent26c72fecb930b0792493ec7e66b8a66b50b9b14c (diff)
* Makefile.in (fake.rb): need to expand the topdir in case of it
being relative, a patch from Luis Lavena <luislavena at gmail.com>. [ruby-core:33466] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@30051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 4faabc3469..6271138fbb 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -138,7 +138,9 @@ fake.rb: Makefile
end; \
end; \
prehook = proc do |e|; \
- Config::MAKEFILE_CONFIG["top_srcdir"] = $$top_srcdir = "@top_srcdir@" unless e; \
+ builddir = File.expand_path(File.dirname(__FILE__)); \
+ Config::MAKEFILE_CONFIG["top_srcdir"] = $$top_srcdir = \
+ File.expand_path("@top_srcdir@", builddir) unless e; \
untrace_var(:$$extmk, prehook); \
end; \
trace_var(:$$extmk, prehook); \