зеркало из https://github.com/github/ruby.git
clean gems
* Makefile.in (clean-ext): clean gem directories too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
7e0aaf3ac3
Коммит
a0da6f0dfe
18
Makefile.in
18
Makefile.in
|
@ -418,21 +418,25 @@ distclean-local::
|
|||
|
||||
clean-ext distclean-ext realclean-ext::
|
||||
@[ -f $(EXTS_MK) ] && $(MAKE) -f $(EXTS_MK) $(@:-ext=)
|
||||
@cd ext 2>/dev/null || exit 0; set dummy `echo "${EXTS}" | tr , ' '`; shift; \
|
||||
@set dummy `echo "${EXTS}" | tr , ' '`; shift; \
|
||||
test "$$#" = 0 && set .; \
|
||||
set dummy `\
|
||||
cd ext 2>/dev/null && \
|
||||
find "$$@" \( -name Makefile -o -name exts.mk \) -print | \
|
||||
sed -n 's:/[^/]*$$::;s:^\./::p' | sort -u; \
|
||||
sed -n 's:^\./::;s:^:ext/:;s:/[^/][^/]*$$::p' | sort -u; \
|
||||
` ` \
|
||||
cd gems 2>/dev/null && \
|
||||
find "$$@" -name exts.mk -print | \
|
||||
sed -n 's:^\./::;s:^:gems/:;s:/[^/][^/]*$$::p' | sort -u; \
|
||||
`; shift; \
|
||||
cd ..; \
|
||||
for dir do \
|
||||
echo $(@:-ext=)ing "$$dir"; \
|
||||
$(RM) "ext/$$dir/exts.mk"; \
|
||||
{ [ ! -f "ext/$$dir/Makefile" ] || \
|
||||
(cd "ext/$$dir" && exec $(MAKE) $(mflags) $(@:-ext=)); } && \
|
||||
$(RM) "$$dir/exts.mk"; \
|
||||
{ [ ! -f "$$dir/Makefile" ] || \
|
||||
(cd "$$dir" && exec $(MAKE) $(mflags) $(@:-ext=)); } && \
|
||||
case "$@" in \
|
||||
*distclean-ext*|*realclean-ext*) \
|
||||
$(RMDIRS) "ext/$$dir" 2> /dev/null || true;; \
|
||||
$(RMDIRS) "$$dir" 2> /dev/null || true;; \
|
||||
esac; \
|
||||
done
|
||||
-$(Q)$(RM) ext/extinit.$(OBJEXT)
|
||||
|
|
|
@ -538,6 +538,8 @@ build_complete: $(build_complete)
|
|||
$(build_complete): $(TARGET_SO)
|
||||
$(Q) $(TOUCH) $@
|
||||
|
||||
clean-so::
|
||||
-$(Q)$(RM) $(build_complete)
|
||||
}
|
||||
conf
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче