From ba3d6005837aab1815131512ca4918f17ee12d07 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 23 Sep 2012 12:48:15 +0000 Subject: [PATCH] mkmf.rb: directory timestamp * lib/mkmf.rb (create_makefile): use timestamp file dependencies for directories. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 ++++- lib/mkmf.rb | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index e1120065aa..8b84f776c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,7 @@ -Sun Sep 23 21:46:12 2012 Nobuyoshi Nakada +Sun Sep 23 21:48:08 2012 Nobuyoshi Nakada + + * lib/mkmf.rb (create_makefile): use timestamp file dependencies for + directories. * lib/mkmf.rb: unexpand macros. diff --git a/lib/mkmf.rb b/lib/mkmf.rb index b16465da48..a01d317756 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -2126,14 +2126,14 @@ static: $(STATIC_LIB)#{$extout ? " install-rb" : ""} if target f = "$(DLLIB)" dest = "#{dir}/#{f}" - mfile.puts dest if $extout + mfile.puts dest mfile.print "clean-so::\n" mfile.print "\t-$(Q)$(RM) #{fseprepl[dest]}\n" mfile.print "\t-$(Q)$(RMDIRS) #{fseprepl[dir]}#{$ignore_error}\n" else - mfile.print "#{dest}: #{f}\n\t-$(Q)$(MAKEDIRS) $(@D#{sep})\n" - mfile.print "\t$(INSTALL_PROG) #{fseprepl[f]} $(@D#{sep})\n" + mfile.print "#{f} #{timestamp_file(dir)}\n" + mfile.print "\t$(INSTALL_PROG) #{fseprepl[f]} #{dir}\n" if defined?($installed_list) mfile.print "\t@echo #{dir}/#{File.basename(f)}>>$(INSTALLED_LIST)\n" end