* 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
This commit is contained in:
nobu 2007-07-21 08:07:37 +00:00
Родитель 985099b0e3
Коммит 021660e442
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -1,4 +1,7 @@
Sat Jul 21 15:39:23 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> Sat Jul 21 17:07:35 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (create_makefile): make OBJS depend on RUBY_EXTCONF_H
only if extconf.h is created.
* {win32,wince,bcc32}/setup.mak (-version-): no RUBY_EXTERN magic. * {win32,wince,bcc32}/setup.mak (-version-): no RUBY_EXTERN magic.

Просмотреть файл

@ -1447,6 +1447,7 @@ site-install-rb: install-rb
unless suffixes.empty? unless suffixes.empty?
mfile.print ".SUFFIXES: .", suffixes.uniq.join(" ."), "\n\n" mfile.print ".SUFFIXES: .", suffixes.uniq.join(" ."), "\n\n"
end end
mfile.print "$(OBJS): $(RUBY_EXTCONF_H)\n\n" if $extconf_h
mfile.print(*depout.flatten) mfile.print(*depout.flatten)
else else
headers = %w[ruby.h defines.h] headers = %w[ruby.h defines.h]
@ -1454,9 +1455,9 @@ site-install-rb: install-rb
headers.each {|h| h.sub!(/.*/, &RULE_SUBST.method(:%))} headers.each {|h| h.sub!(/.*/, &RULE_SUBST.method(:%))}
end end
headers << $config_h if $config_h headers << $config_h if $config_h
headers << '$(RUBY_EXTCONF_H)' if $extconf_h
mfile.print "$(OBJS): ", headers.join(' '), "\n" mfile.print "$(OBJS): ", headers.join(' '), "\n"
end end
mfile.print "\n$(OBJS): $(RUBY_EXTCONF_H)\n"
$makefile_created = true $makefile_created = true
ensure ensure