OSDN Git Service

Remove *.o and *.os running find only once
authorPeter S. Mazinger <ps.m@gmx.net>
Thu, 6 Oct 2005 06:25:11 +0000 (06:25 -0000)
committerPeter S. Mazinger <ps.m@gmx.net>
Thu, 6 Oct 2005 06:25:11 +0000 (06:25 -0000)
Makefile

index 0dd54c5..b0a557e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -370,8 +370,7 @@ clean:
        @if [ -d libc/sysdeps/linux/$(TARGET_ARCH) ]; then              \
            $(MAKE) -C libc/sysdeps/linux/$(TARGET_ARCH) clean;         \
        fi
-       -find . -name \*.o -exec $(RM) {} \;
-       -find . -name \*.os -exec $(RM) {} \;
+       -find . \( -name \*.o -o -name \*.os \) -exec $(RM) {} \;
 
 distclean: clean
        -find . \( -name core -o -name \*.orig -o -name \*~ -o -name .\#\* \) -exec $(RM) {} \;