diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-21 08:07:37 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-21 08:07:37 +0000 |
| commit | 24ec25c58e20cf6b8bfb851babd9368f1e8b83c8 (patch) | |
| tree | 31d25de2f8957238c06a41085a9eac9c9230b29c | |
| parent | 0abed803a96da3f68cffe2ad6b69aa57993a0801 (diff) | |
| download | ruby-24ec25c58e20cf6b8bfb851babd9368f1e8b83c8.tar.gz ruby-24ec25c58e20cf6b8bfb851babd9368f1e8b83c8.tar.xz ruby-24ec25c58e20cf6b8bfb851babd9368f1e8b83c8.zip | |
* lib/mkmf.rb (create_makefile): make OBJS depend on RUBY_EXTCONF_H
only if extconf.h is created.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | lib/mkmf.rb | 3 |
2 files changed, 6 insertions, 2 deletions
@@ -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. diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 0bc9f1929..1a3436490 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 |
