Permalink
Browse files

Makefile: Fix 'clean' rule

In commit 1df0bdd, 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 <lelutin@gmail.com>
  • Loading branch information...
1 parent 2672a5e commit 92b297dcc985c3c72d39661626b8ed022e85277a @lelutin lelutin committed with Mar 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Makefile
View
@@ -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

0 comments on commit 92b297d

Please sign in to comment.