From: Paul Eggert Date: Sun, 19 Jan 2025 04:01:16 +0000 (-0800) Subject: Simplify cross cleaning X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=52520be6ec3138ad7ac325d549127b2bbf6e2d5b;p=emacs.git Simplify cross cleaning * cross/Makefile.in (clean, maintainer-clean): Prefer a single ‘find’ to doing ‘find’ in a shell loop. (cherry picked from commit 421d30773372b650a00fe250442f6db2bcc71270) --- 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