Browse Source

Remove *.o and *.os running find only once

Peter S. Mazinger 18 years ago
parent
commit
4583f84ac9
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Makefile

+ 1 - 2
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) {} \;