summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
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); \