Browse code

Freshen up Makefile clean target

Tim Bielawa authored on 2012/03/06 04:06:39
Showing 1 changed files
... ...
@@ -33,12 +33,14 @@ pyflakes:
33 33
 	pyflakes lib/ansible/*.py
34 34
 
35 35
 clean:
36
+	@echo "Cleaning up distutils stuff"
36 37
 	rm -rf build
37
-	find . -type f -name "*.pyc" -delete
38
-	find . -type f -name "*.pyo" -delete
39
-	find . -type f -name "*~" -delete
40
-	find ./docs/ -type f -name "*.xml" -delete
41
-	find . -type f -name "#*" -delete
38
+	@echo "Cleaning up byte compiled python stuff"
39
+	find . -regex ".*\.py[co]$$"
40
+	@echo "Cleaning up editor backup files"
41
+	find . -type f \( -name "*~" -or -name "#*" \) -delete
42
+	@echo "Cleaning up asciidoc to man transformations and results"
43
+	find ./docs/man -type f \( -name "*.xml" -or -regex ".*\.[0-9]$$" \) -delete
42 44
 
43 45
 python: docs
44 46
 	python setup.py build