summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-01-23 17:29:53 -0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2009-01-23 17:29:53 -0200
commit92a0821bf269fc3bb90e536f111ff349ff3187ce (patch)
tree4341270d78abf3860ff9cffc4aab390fc9637aa4
parent672bae47a02e3700e0b0275f5929e4262911f2bd (diff)
downloadtuna-92a0821bf269fc3bb90e536f111ff349ff3187ce.tar.gz
Makefile: Add "clean" target
Reported-by: Guy Streeter <streeter@redhat.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7ccd210..8b10c4d 100644
--- a/Makefile
+++ b/Makefile
@@ -21,3 +21,14 @@ bz2dev: rpmdirs
rpmdev: bz2dev rpmdirs
rpmbuild -ba --define "_topdir $(PWD)/rpm" rpm/SPECS/$(PACKAGE).spec
+
+rpmclean:
+ @rm -f rpm/RPMS/*/$(PACKAGE)-$(VERSION)-*.rpm
+ @rm -f rpm/SRPMS/$(PACKAGE)-$(VERSION)-*.src.rpm
+ @rm -f rpm/SOURCES/$(PACKAGE)-$(VERSION).tar.bz2
+ @rm -rf rpm/BUILD/$(PACKAGE)-$(VERSION)*
+
+pyclean:
+ @find . -type f \( -name \*~ -o -name \*.pyc \) -delete
+
+clean: pyclean rpmclean