diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-04-23 15:43:26 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-04-23 15:43:26 +0000 |
commit | f3223ada81381ff1597c14cd702bc988ee990702 (patch) | |
tree | abbdf27387aedc17af4e589f116e761866a2cb9f /lib | |
parent | 653b5d0b1a4c7dfa63673eb4b98875858f355100 (diff) |
* 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: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mkmf.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 52b3e128fa..c1d4f760b3 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -596,7 +596,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 |