summaryrefslogtreecommitdiffstats
path: root/lib/mkmf.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-23 15:43:26 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-04-23 15:43:26 +0000
commitc9bfe27db300297f1b168ffa6bcc7f25eab310a6 (patch)
tree7c3a0d03f513127f1a459940f7b99bb05aae2717 /lib/mkmf.rb
parent0f25737e3c617fafca4c12c91f6141dfdd0966e0 (diff)
downloadruby-c9bfe27db300297f1b168ffa6bcc7f25eab310a6.tar.gz
ruby-c9bfe27db300297f1b168ffa6bcc7f25eab310a6.tar.xz
ruby-c9bfe27db300297f1b168ffa6bcc7f25eab310a6.zip
* ext/extmk.rb.in (create_makefile): use `{$(srcdir)}' directive instead
of `$(srcdir)/' when including depend file. * lib/mkmf.rb (create_makefile): add `{$(srcdir)}' when including depend file. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r--lib/mkmf.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index a4f7e5889..66f1f8a03 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -630,7 +630,8 @@ EOMF
dfile = open(depend, "r")
mfile.printf "###\n"
while line = dfile.gets()
- mfile.printf "%s", line.gsub(/\.o\b/, ".#{$OBJEXT}")
+ line.gsub!(/\.o\b/, ".#{$OBJEXT}")
+ mfile.printf "%s", line.gsub(/(\s)([^\s\/]+\.[ch])/, '\1{$(srcdir)}\2') if /nmake/i =~ $make
end
dfile.close
end