зеркало из https://github.com/github/ruby.git
Clean compiler intermediate files more
This commit is contained in:
Родитель
f64718cb32
Коммит
facb5cd4d5
|
@ -633,7 +633,7 @@ clear-installed-list: PHONY
|
|||
|
||||
clean: clean-ext clean-enc clean-golf clean-docs clean-extout clean-local clean-platform clean-spec
|
||||
clean-local:: clean-runnable
|
||||
$(Q)$(RM) $(OBJS) $(MINIOBJS) $(MAINOBJ) $(LIBRUBY_A) $(LIBRUBY_SO) $(LIBRUBY) $(LIBRUBY_ALIASES)
|
||||
$(Q)$(RM) $(OBJS) $(MINIOBJS) $(INITOBJS) $(MAINOBJ) $(LIBRUBY_A) $(LIBRUBY_SO) $(LIBRUBY) $(LIBRUBY_ALIASES)
|
||||
$(Q)$(RM) $(PROGRAM) $(WPROGRAM) miniruby$(EXEEXT) dmyext.$(OBJEXT) dmyenc.$(OBJEXT) $(ARCHFILE) .*.time
|
||||
$(Q)$(RM) y.tab.c y.output encdb.h transdb.h config.log rbconfig.rb $(ruby_pc) $(COROUTINE_H:/Context.h=/.time)
|
||||
$(Q)$(RM) probes.h probes.$(OBJEXT) probes.stamp ruby-glommed.$(OBJEXT) ruby.imp ChangeLog $(STATIC_RUBY)$(EXEEXT)
|
||||
|
|
|
@ -2378,11 +2378,18 @@ TIMESTAMP_DIR = #{$extout && $extmk ? '$(extout)/.timestamp' : '.'}
|
|||
install_dirs.each {|d| conf << ("%-14s= %s\n" % d) if /^[[:upper:]]/ =~ d[0]}
|
||||
sodir = $extout ? '$(TARGET_SO_DIR)' : '$(RUBYARCHDIR)'
|
||||
n = '$(TARGET_SO_DIR)$(TARGET)'
|
||||
cleanobjs = ["$(OBJS)"]
|
||||
if $extmk
|
||||
%w[bc i s].each {|ex| cleanobjs << "$(OBJS:.#{$OBJEXT}=.#{ex})"}
|
||||
end
|
||||
if target
|
||||
config_string('cleanobjs') {|t| cleanobjs << t.gsub(/\$\*/, "$(TARGET)#{deffile ? '-$(arch)': ''}")}
|
||||
end
|
||||
conf << "\
|
||||
TARGET_SO_DIR =#{$extout ? " $(RUBYARCHDIR)/" : ''}
|
||||
TARGET_SO = $(TARGET_SO_DIR)$(DLLIB)
|
||||
CLEANLIBS = #{'$(TARGET_SO) ' if target}#{config_string('cleanlibs') {|t| t.gsub(/\$\*/) {n}}}
|
||||
CLEANOBJS = *.#{$OBJEXT} #{config_string('cleanobjs') {|t| t.gsub(/\$\*/, "$(TARGET)#{deffile ? '-$(arch)': ''}")} if target} *.bak
|
||||
CLEANOBJS = #{cleanobjs.join(' ')} *.bak
|
||||
TARGET_SO_DIR_TIMESTAMP = #{timestamp_file(sodir, target_prefix)}
|
||||
" #"
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче