[meld] Tidy up 'clean' make target
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] Tidy up 'clean' make target
- Date: Tue, 9 Mar 2010 06:56:41 +0000 (UTC)
commit aef025504b1f043262801a33ed6a05bf071289bd
Author: Peter Tyser <ptyser gmail com>
Date: Mon Mar 8 23:23:16 2010 -0600
Tidy up 'clean' make target
Previously 'make clean' would not remove the following files:
- bin/meld.install
- meld/paths.py.install
While we're at it, simplify the removal process by using 'find' instead
of hardcoding paths.
Signed-off-by: Peter Tyser <ptyser gmail com>
GNUmakefile | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/GNUmakefile b/GNUmakefile
index 90b500b..dc0a2c3 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -29,7 +29,10 @@ all: $(addsuffix .install,$(SPECIALS)) meld.desktop
.PHONY:clean
clean:
- -rm -f meld/*.pyc meld/ui/*.pyc meld/util/*.pyc meld/vc/*.pyc *.install data/meld.desktop *.bak data/ui/*.bak
+ @find ./meld -type f \( -name '*.pyc' -o -name '*.install' \) -print0 |\
+ xargs -0 rm -f
+ @find ./bin -type f \( -name '*.install' \) -print0 | xargs -0 rm -f
+ @rm -f data/meld.desktop
$(MAKE) -C po clean
$(MAKE) -C help clean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]