ruby-changes:37068
From: nobu <ko1@a...>
Date: Mon, 5 Jan 2015 21:33:36 +0900 (JST)
Subject: [ruby-changes:37068] nobu:r49149 (trunk): mkmf.rb: clean timestamps
nobu 2015-01-05 21:33:22 +0900 (Mon, 05 Jan 2015) New Revision: 49149 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49149 Log: mkmf.rb: clean timestamps * lib/mkmf.rb (create_makefile): clean timestamp files of destination directories. Modified files: trunk/lib/mkmf.rb Index: lib/mkmf.rb =================================================================== --- lib/mkmf.rb (revision 49148) +++ lib/mkmf.rb (revision 49149) @@ -2286,13 +2286,14 @@ static: $(STATIC_LIB)#{$extout ? " insta https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L2286 if target f = "$(DLLIB)" dest = "#{dir}/#{f}" + stamp = timestamp_file(dir, target_prefix) if $extout mfile.puts dest mfile.print "clean-so::\n" - mfile.print "\t-$(Q)$(RM) #{fseprepl[dest]}\n" + mfile.print "\t-$(Q)$(RM) #{fseprepl[dest]} #{fseprepl[stamp]}\n" mfile.print "\t-$(Q)$(RMDIRS) #{fseprepl[dir]}#{$ignore_error}\n" else - mfile.print "#{f} #{timestamp_file(dir, target_prefix)}\n" + mfile.print "#{f} #{stamp}\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" @@ -2339,6 +2340,8 @@ static: $(STATIC_LIB)#{$extout ? " insta https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L2340 unless dirs.empty? mfile.print("clean-rb#{sfx}::\n") for dir in dirs.sort_by {|d| -d.count('/')} + stamp = timestamp_file(dir, target_prefix) + mfile.print("\t-$(Q)$(RM) #{fseprepl[stamp]}\n") mfile.print("\t-$(Q)$(RMDIRS) #{fseprepl[dir]}#{$ignore_error}\n") end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/