mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
471f5a7af0
commit
53d9cb7304
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue