From 980ebb6f196d63028d887594f43c93f7356cc8e4 Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Sun, 16 Jan 2011 17:55:16 +0100 Subject: [PATCH 1/2] Makefile: don't remove unrelated files Contributers don't expect to have their working files deleted on 'make clean'. This process should only remove files created by the build mechanisms included in the repository. Signed-off-by: Nicolas Sebrecht --- Makefile | 3 --- 1 file changed, 3 deletions(-) diff --git a/Makefile b/Makefile index f184835..54da8a8 100644 --- a/Makefile +++ b/Makefile @@ -21,13 +21,10 @@ SHELL=/bin/bash clean: -python setup.py clean --all - -rm -f `find . -name "*~"` - -rm -f `find . -name "*.tmp"` -rm -f bin/offlineimapc -rm -f `find . -name "*.pyc"` -rm -f `find . -name "*.pygc"` -rm -f `find . -name "*.class"` - -rm -f `find . -name "*.bak"` -rm -f `find . -name ".cache*"` -rm -f manpage.links manpage.refs -find . -name auth -exec rm -vf {}/password {}/username \; From b81c8b58ed7e77fae1039f96f9381f5c535f16bd Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Sun, 16 Jan 2011 17:53:32 +0100 Subject: [PATCH 2/2] Makefile: fix cleaning path having whitespaces Signed-off-by: Nicolas Sebrecht --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 54da8a8..7b7d160 100644 --- a/Makefile +++ b/Makefile @@ -22,10 +22,10 @@ SHELL=/bin/bash clean: -python setup.py clean --all -rm -f bin/offlineimapc - -rm -f `find . -name "*.pyc"` - -rm -f `find . -name "*.pygc"` - -rm -f `find . -name "*.class"` - -rm -f `find . -name ".cache*"` + -find . -name '*.pyc' -exec rm -f {} \; + -find . -name '*.pygc' -exec rm -f {} \; + -find . -name '*.class' -exec rm -f {} \; + -find . -name '.cache*' -exec rm -f {} \; -rm -f manpage.links manpage.refs -find . -name auth -exec rm -vf {}/password {}/username \; -rm -f readme.html