diff options
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r-- | lib/mkmf.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 53f647aef1..4c05ebf8a5 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -1897,7 +1897,14 @@ RULES unless suffixes.empty? depout.unshift(".SUFFIXES: ." + suffixes.uniq.join(" .") + "\n\n") end - depout.unshift("$(OBJS): $(RUBY_EXTCONF_H)\n\n") if $extconf_h + if $extconf_h + depout.unshift("$(OBJS): $(RUBY_EXTCONF_H)\n\n", + "$(RUBY_EXTCONF_H): $(srcdir)/extconf.rb\n", + "$(RUBY_EXTCONF_H):\n", + "\t$(Q)$(RM) $(@)\n", + "\t$(ECHO) $@ is outdated, re-configure\n", + "\t@exit 1\n") + end depout.flatten! depout end |