From 53d9cb730499224d7a5d8eb8bc4b9b4f42224449 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 5 Jan 2015 12:33:22 +0000 Subject: mkmf.rb: clean timestamps * lib/mkmf.rb (create_makefile): clean timestamp files of destination directories. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/mkmf.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 5f549eb787..e7c466f6fe 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -2286,13 +2286,14 @@ static: $(STATIC_LIB)#{$extout ? " install-rb" : ""} 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 ? " install-rb" : ""} 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 -- cgit v1.2.3