From: Gabriel Filion Date: Fri, 11 Mar 2011 01:01:30 +0000 (-0500) Subject: Makefile: Fix 'clean' rule X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=92b297dcc985c3c72d39661626b8ed022e85277a;p=packages%2Fb%2Fbup.git Makefile: Fix 'clean' rule In commit 1df0bdd1ad937, I introduced a problem in the make file: the chmod operation that gives back some permissions on lib/bup/t/pybuptest.tmp dies if this directory does not exist. pybuptest.tmp is only created when running the tests. when the chmod dies, the clean rule stops, thus not completing the cleanup, so we must make sure this operation is not fatal if the directory doesn't exist. Signed-off-by: Gabriel Filion --- diff --git a/Makefile b/Makefile index 2526726..61f6e8d 100644 --- a/Makefile +++ b/Makefile @@ -146,5 +146,5 @@ clean: Documentation/clean *.pyc */*.pyc lib/*/*.pyc lib/*/*/*.pyc \ bup bup-* cmd/bup-* lib/bup/_version.py randomgen memtest \ out[12] out2[tc] tags[12] tags2[tc] - chmod u+rwx lib/bup/t/pybuptest.tmp + [ -d lib/bup/t/pybuptest.tmp ] && chmod u+rwx lib/bup/t/pybuptest.tmp || true rm -rf *.tmp t/*.tmp lib/*/*/*.tmp build lib/bup/build