Fix unnecessary false
in CLEANLIBS
This commit is contained in:
parent
cfa74dda45
commit
8c9cd65d82
Notes:
git
2025-04-13 11:18:18 +00:00
@ -2510,16 +2510,19 @@ TIMESTAMP_DIR = #{$extout && $extmk ? '$(extout)/.timestamp' : '.'}
|
||||
sodir = $extout ? '$(TARGET_SO_DIR)' : '$(RUBYARCHDIR)'
|
||||
n = '$(TARGET_SO_DIR)$(TARGET)'
|
||||
cleanobjs = ["$(OBJS)"]
|
||||
cleanlibs = []
|
||||
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)': ''}")}
|
||||
cleanlibs << '$(TARGET_SO)'
|
||||
end
|
||||
config_string('cleanlibs') {|t| cleanlibs << t.gsub(/\$\*/) {n}}
|
||||
conf << "\
|
||||
TARGET_SO_DIR =#{$extout ? " $(RUBYARCHDIR)/" : ''}
|
||||
TARGET_SO = $(TARGET_SO_DIR)$(DLLIB)
|
||||
CLEANLIBS = #{'$(TARGET_SO) ' if target}#{config_string('cleanlibs') {|t| t.gsub(/\$\*/) {n}}}
|
||||
CLEANLIBS = #{cleanlibs.join(' ')}
|
||||
CLEANOBJS = #{cleanobjs.join(' ')} *.bak
|
||||
TARGET_SO_DIR_TIMESTAMP = #{timestamp_file(sodir, target_prefix)}
|
||||
" #"
|
||||
|
Loading…
x
Reference in New Issue
Block a user