From 2d052fcefb742ac3e1776ee1a0d9bb9c036b9803 Mon Sep 17 00:00:00 2001 From: Tim Bielawa Date: Mon, 5 Mar 2012 14:06:39 -0500 Subject: [PATCH] Freshen up Makefile clean target --- Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index c950f15f87d..8652dae1ede 100644 --- a/Makefile +++ b/Makefile @@ -33,12 +33,14 @@ pyflakes: pyflakes lib/ansible/*.py clean: + @echo "Cleaning up distutils stuff" rm -rf build - find . -type f -name "*.pyc" -delete - find . -type f -name "*.pyo" -delete - find . -type f -name "*~" -delete - find ./docs/ -type f -name "*.xml" -delete - find . -type f -name "#*" -delete + @echo "Cleaning up byte compiled python stuff" + find . -regex ".*\.py[co]$$" + @echo "Cleaning up editor backup files" + find . -type f \( -name "*~" -or -name "#*" \) -delete + @echo "Cleaning up asciidoc to man transformations and results" + find ./docs/man -type f \( -name "*.xml" -or -regex ".*\.[0-9]$$" \) -delete python: docs python setup.py build