From 52520be6ec3138ad7ac325d549127b2bbf6e2d5b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 18 Jan 2025 20:01:16 -0800 Subject: [PATCH] Simplify cross cleaning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * cross/Makefile.in (clean, maintainer-clean): Prefer a single ‘find’ to doing ‘find’ in a shell loop. (cherry picked from commit 421d30773372b650a00fe250442f6db2bcc71270) --- cross/Makefile.in | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cross/Makefile.in b/cross/Makefile.in index 398d8b215f8..c008ebf861e 100644 --- a/cross/Makefile.in +++ b/cross/Makefile.in @@ -182,9 +182,7 @@ $(LIBSRC_BINARIES) &: src/verbose.mk $(top_builddir)/$@ lib/libgnu.a \ .PHONY: clean maintainer-clean distclean clean: - for dir in $(CLEAN_SUBDIRS); do \ - find $$dir -type f $(FIND_DELETE); \ - done + find $(CLEAN_SUBDIRS) -type f $(FIND_DELETE) rm -rf lib/config.h lib-src/config.h # ndk-build won't have been generated in a non-Android build. if test -f ndk-build/Makefile; then \ @@ -193,8 +191,6 @@ clean: maintainer-clean distclean bootstrap-clean: clean # Remove links created by configure. - for dir in $(CLEAN_SUBDIRS); do \ - find $$dir -type l $(FIND_DELETE); \ - done + find $(CLEAN_SUBDIRS) -type l $(FIND_DELETE) rm -rf lib/Makefile lib/gnulib.mk ndk-build/Makefile rm -rf ndk-build/ndk-build.mk Makefile -- 2.39.5