diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-01-23 17:29:53 -0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-01-23 17:29:53 -0200 |
commit | 92a0821bf269fc3bb90e536f111ff349ff3187ce (patch) | |
tree | 4341270d78abf3860ff9cffc4aab390fc9637aa4 | |
parent | 672bae47a02e3700e0b0275f5929e4262911f2bd (diff) | |
download | tuna-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-- | Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |