diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2025-01-18 20:01:16 -0800 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2025-01-18 23:28:10 -0800 |
| commit | 421d30773372b650a00fe250442f6db2bcc71270 (patch) | |
| tree | 7d09bd882493ca9d207c3da25cb679b38f310a05 /cross | |
| parent | 0f75a01acd3fe880da6884018565870ba800f30e (diff) | |
Simplify cross cleaning
* cross/Makefile.in (clean, maintainer-clean):
Prefer a single ‘find’ to doing ‘find’ in a shell loop.
Diffstat (limited to 'cross')
| -rw-r--r-- | cross/Makefile.in | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cross/Makefile.in b/cross/Makefile.in index a10d0f5421d..94a28a755bc 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 |
