]> git.eshelyaron.com Git - emacs.git/commitdiff
Simplify cross cleaning
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 Jan 2025 04:01:16 +0000 (20:01 -0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 20 Jan 2025 15:58:06 +0000 (16:58 +0100)
* 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

index 398d8b215f8a28d1baa0d7719ab0c8b2fada3a75..c008ebf861ea7cb205f7434cb37b457f24b2e36e 100644 (file)
@@ -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