diff options
| author | Paul Eggert | 2025-01-18 20:01:16 -0800 |
|---|---|---|
| committer | Paul Eggert | 2025-01-18 23:28:10 -0800 |
| commit | 421d30773372b650a00fe250442f6db2bcc71270 (patch) | |
| tree | 7d09bd882493ca9d207c3da25cb679b38f310a05 | |
| parent | 0f75a01acd3fe880da6884018565870ba800f30e (diff) | |
| download | emacs-421d30773372b650a00fe250442f6db2bcc71270.tar.gz emacs-421d30773372b650a00fe250442f6db2bcc71270.zip | |
Simplify cross cleaning
* cross/Makefile.in (clean, maintainer-clean):
Prefer a single ‘find’ to doing ‘find’ in a shell loop.
| -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 \ | |||
| 182 | 182 | ||
| 183 | .PHONY: clean maintainer-clean distclean | 183 | .PHONY: clean maintainer-clean distclean |
| 184 | clean: | 184 | clean: |
| 185 | for dir in $(CLEAN_SUBDIRS); do \ | 185 | find $(CLEAN_SUBDIRS) -type f $(FIND_DELETE) |
| 186 | find $$dir -type f $(FIND_DELETE); \ | ||
| 187 | done | ||
| 188 | rm -rf lib/config.h lib-src/config.h | 186 | rm -rf lib/config.h lib-src/config.h |
| 189 | # ndk-build won't have been generated in a non-Android build. | 187 | # ndk-build won't have been generated in a non-Android build. |
| 190 | if test -f ndk-build/Makefile; then \ | 188 | if test -f ndk-build/Makefile; then \ |
| @@ -193,8 +191,6 @@ clean: | |||
| 193 | 191 | ||
| 194 | maintainer-clean distclean bootstrap-clean: clean | 192 | maintainer-clean distclean bootstrap-clean: clean |
| 195 | # Remove links created by configure. | 193 | # Remove links created by configure. |
| 196 | for dir in $(CLEAN_SUBDIRS); do \ | 194 | find $(CLEAN_SUBDIRS) -type l $(FIND_DELETE) |
| 197 | find $$dir -type l $(FIND_DELETE); \ | ||
| 198 | done | ||
| 199 | rm -rf lib/Makefile lib/gnulib.mk ndk-build/Makefile | 195 | rm -rf lib/Makefile lib/gnulib.mk ndk-build/Makefile |
| 200 | rm -rf ndk-build/ndk-build.mk Makefile | 196 | rm -rf ndk-build/ndk-build.mk Makefile |