Эх сурвалжийг харах

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

Peter S. Mazinger 19 жил өмнө
parent
commit
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) {} \;