aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-28 08:22:00 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-28 08:22:00 +0000
commitd89225bc86f5df64251d724ef25eeaf5c8d4f3f4 (patch)
tree06c592dd3ed1b5d8dd4b4d01a0ec4ea6fae8677a /Makefile.in
parent5de5cc17172bcb4c9734a228b339b61b7529f3c4 (diff)
downloadruby-d89225bc86f5df64251d724ef25eeaf5c8d4f3f4.tar.gz
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
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in18
1 files changed, 11 insertions, 7 deletions
diff --git a/Makefile.in b/Makefile.in
index c182949427..699b25ea50 100644
--- a/Makefile.in
+++ b/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)