diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-21 14:49:56 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-21 14:49:56 +0000 |
| commit | 402b4240388d0206a2fa83826a8b6f9da216416b (patch) | |
| tree | 13bcf032acb11b88bda9f481b709a4e3f1b13972 /lib | |
| parent | cd4df20b13915dab87ce48c2abb5190cf158f835 (diff) | |
| download | ruby-402b4240388d0206a2fa83826a8b6f9da216416b.tar.gz ruby-402b4240388d0206a2fa83826a8b6f9da216416b.tar.xz ruby-402b4240388d0206a2fa83826a8b6f9da216416b.zip | |
* lib/mkmf.rb (depend_rules): suffixes list broken. fixed.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/mkmf.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 2c1016da8..8e27296f8 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -1269,10 +1269,6 @@ end def depend_rules(depend) suffixes = [] depout = [] - depout << "$(OBJS): $(RUBY_EXTCONF_H)\n\n" if $extconf_h - unless suffixes.empty? - depout << ".SUFFIXES: ." + suffixes.uniq.join(" .") + "\n\n" - end cont = implicit = nil impconv = proc do COMPILE_RULES.each {|rule| depout << (rule % implicit[0]) << implicit[1]} @@ -1314,6 +1310,10 @@ def depend_rules(depend) elsif implicit impconv.call end + unless suffixes.empty? + depout.unshift(".SUFFIXES: ." + suffixes.uniq.join(" .") + "\n\n") + end + depout.unshift("$(OBJS): $(RUBY_EXTCONF_H)\n\n") if $extconf_h depout.flatten! depout end |
