]> Cypherpunks repositories - gostls13.git/commitdiff
make: prevent rm provoking 'text file busy' errors.
authorLorenzo Stoakes <lstoakes@gmail.com>
Fri, 15 Apr 2011 12:25:44 +0000 (08:25 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 15 Apr 2011 12:25:44 +0000 (08:25 -0400)
Trivial patch to stop intermediate rm'ing of binaries stopping build.

R=rsc1, bradfitzgo, rsc
CC=golang-dev
https://golang.org/cl/4412045

src/Make.common

index 34d7016f4232f705915be454d462889ac5f40b93..0b27d07f9a3ad4540121ea77616b76369ad8b862 100644 (file)
@@ -6,13 +6,13 @@ clean:
        rm -rf *.o *.a *.[$(OS)] [$(OS)].out $(CLEANFILES)
 
 install.clean: install
-       rm -rf *.o *.a *.[$(OS)] [$(OS)].out $(CLEANFILES)
+       rm -rf *.o *.a *.[$(OS)] [$(OS)].out $(CLEANFILES) || true
 
 test.clean: test
-       rm -rf *.o *.a *.[$(OS)] [$(OS)].out $(CLEANFILES)
+       rm -rf *.o *.a *.[$(OS)] [$(OS)].out $(CLEANFILES) || true
 
 testshort.clean: testshort
-       rm -rf *.o *.a *.[$(OS)] [$(OS)].out $(CLEANFILES)
+       rm -rf *.o *.a *.[$(OS)] [$(OS)].out $(CLEANFILES) || true
 
 %.make:
        $(MAKE) -C $* install