aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-21 08:07:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-21 08:07:37 +0000
commit021660e4428f941553ae0cf893d756f270771471 (patch)
tree31d25de2f8957238c06a41085a9eac9c9230b29c /lib
parent985099b0e3c47b4ade1b36f8cae5712f5744c7e3 (diff)
downloadruby-021660e4428f941553ae0cf893d756f270771471.tar.gz
* lib/mkmf.rb (create_makefile): make OBJS depend on RUBY_EXTCONF_H
only if extconf.h is created. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/mkmf.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 0bc9f19293..1a3436490f 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -1447,6 +1447,7 @@ site-install-rb: install-rb
unless suffixes.empty?
mfile.print ".SUFFIXES: .", suffixes.uniq.join(" ."), "\n\n"
end
+ mfile.print "$(OBJS): $(RUBY_EXTCONF_H)\n\n" if $extconf_h
mfile.print(*depout.flatten)
else
headers = %w[ruby.h defines.h]
@@ -1454,9 +1455,9 @@ site-install-rb: install-rb
headers.each {|h| h.sub!(/.*/, &RULE_SUBST.method(:%))}
end
headers << $config_h if $config_h
+ headers << '$(RUBY_EXTCONF_H)' if $extconf_h
mfile.print "$(OBJS): ", headers.join(' '), "\n"
end
- mfile.print "\n$(OBJS): $(RUBY_EXTCONF_H)\n"
$makefile_created = true
ensure