mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Makefile.in: clean exts.mk files
* Makefile.in (clean-ext): remove exts.mk files in subdirectories underneath ext. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
06c1272677
commit
09a2b5d27c
1 changed files with 6 additions and 3 deletions
|
@ -420,12 +420,15 @@ clean-ext distclean-ext realclean-ext::
|
|||
@cd ext 2>/dev/null || exit 0; set dummy `echo "${EXTS}" | tr , ' '`; shift; \
|
||||
test "$$#" = 0 && set .; \
|
||||
set dummy `\
|
||||
find "$$@" -name Makefile -print | sed 's:^\./::;s:/Makefile$$::' | sort; \
|
||||
find "$$@" \( -name Makefile -o -name exts.mk \) -print | \
|
||||
sed -n 's:/[^/]*$$::;s:^\./::p' | sort -u; \
|
||||
`; shift; \
|
||||
cd ..; \
|
||||
for dir do \
|
||||
echo $(@:-ext=)ing "$$dir"; \
|
||||
(cd "ext/$$dir" && exec $(MAKE) $(mflags) $(@:-ext=)) && \
|
||||
$(RM) "ext/$$dir/exts.mk"; \
|
||||
{ [ ! -f "ext/$$dir/Makefile" ] || \
|
||||
(cd "ext/$$dir" && exec $(MAKE) $(mflags) $(@:-ext=)); } && \
|
||||
case "$@" in \
|
||||
*distclean-ext*|*realclean-ext*) \
|
||||
$(RMDIRS) "ext/$$dir" 2> /dev/null || true;; \
|
||||
|
@ -434,7 +437,7 @@ clean-ext distclean-ext realclean-ext::
|
|||
-$(Q)$(RM) ext/extinit.$(OBJEXT)
|
||||
|
||||
distclean-ext realclean-ext::
|
||||
-$(Q)$(RM) ext/extinit.c ext/configure-ext.mk ext/*/exts.mk
|
||||
-$(Q)$(RM) ext/extinit.c ext/configure-ext.mk
|
||||
-$(Q)$(RMDIR) ext 2> /dev/null || true
|
||||
|
||||
clean-extout:
|
||||
|
|
Loading…
Reference in a new issue