]> err.no Git - util-linux/commitdiff
build-sys: in the clean targets use "find ... | xargs rm -f"
authorStepan Kasal <skasal@redhat.com>
Tue, 15 May 2007 18:46:30 +0000 (20:46 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 16 May 2007 09:43:31 +0000 (11:43 +0200)
"find ... -exec rm {}" is unnecessarily slow.

Signed-off-by: Stepan Kasal <skasal@redhat.com>
Makefile.am

index 490e98bf16facd24f4e14e6553d19cf10b9204e3..1b91651f0ec5c1ea0307b433c329d660d747f5e3 100644 (file)
@@ -27,12 +27,12 @@ EXTRA_DIST = \
 
 
 distclean-local:
-       -find . \( -name \*~ -o -name \*.orig -o -name \*.rej \) -exec rm -f {} \;
+       -find . -name \*~ -o -name \*.orig -o -name \*.rej | xargs rm -f
        rm -rf autom4te.cache
 
 mrproper: distclean
        if [ -f ".gitignore" ]; then \
-               find -name Makefile.in -exec rm -f {} \; ; \
+               find -name Makefile.in | xargs rm -f ; \
                rm -f configure ABOUT-NLS ; \
                rm -rf m4 ; \
                cd config; rm -f `cat ../.gitignore`; cd .. ; \