From de7048ce904132c1e80d3a66ea1ae02cb93c5216 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Thu, 2 Dec 2010 12:23:34 +0000 Subject: * Makefile.in (fake.rb): need to expand the topdir in case of it being relative, a patch from Luis Lavena . [ruby-core:33466] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@30051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- Makefile.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile.in') 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); \ -- cgit v1.2.3