summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley2006-03-09 22:01:05 +0000
committerRob Landley2006-03-09 22:01:05 +0000
commit31e3610c4b71594c3b141a249ab2e5812c92980a (patch)
tree5a77f3305ddc1d55b116299843b137d9efa25e74
parentac664e07dfb3d833c8b8b1294c262a4ed5032d98 (diff)
downloadbusybox-31e3610c4b71594c3b141a249ab2e5812c92980a.zip
busybox-31e3610c4b71594c3b141a249ab2e5812c92980a.tar.gz
Cleanup from Paul Fox. One find piped to xargs is faster/simpler than
lots of finds doing individual -exec rm.
-rw-r--r--Makefile10
1 files changed, 3 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 7fcdd45..f255394 100644
--- a/Makefile
+++ b/Makefile
@@ -441,18 +441,14 @@ clean:
libbusybox.so* \
.config.old busybox busybox_unstripped
- rm -r -f _install testsuite/links
- - find . -name .\*.flags -exec rm -f {} \;
- - find . -name \*.o -exec rm -f {} \;
- - find . -name \*.om -exec rm -f {} \;
- - find . -name \*.os -exec rm -f {} \;
- - find . -name \*.osm -exec rm -f {} \;
- - find . -name \*.a -exec rm -f {} \;
+ - find . -name .\*.flags -o -name \*.o -o -name \*.om \
+ -o -name \*.os -o -name \*.osm -o -name \*.a | xargs rm -f
distclean: clean
- $(MAKE) -C scripts/config clean
- rm -f scripts/bb_mkdep
- rm -r -f include/config $(DEP_INCLUDES)
- - find . -name .depend'*' -exec rm -f {} \;
+ - find . -name .depend'*' | xargs rm -f
rm -f .config .config.old .config.cmd
release: distclean #doc