소스 검색

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

Peter S. Mazinger 20 년 전
부모
커밋
4583f84ac9
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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) {} \;