diff --git a/Makefile b/Makefile index f8b550f123..00649daf0d 100644 --- a/Makefile +++ b/Makefile @@ -152,6 +152,7 @@ clean: rm -rf lib/ansible.egg-info/ @echo "Cleaning up byte compiled python stuff" find . -type f -regex ".*\.py[co]$$" -delete + find . -type d -name "__pycache__" -delete @echo "Cleaning up editor backup files" find . -type f -not -path ./test/units/inventory_test_data/group_vars/noparse/all.yml~ \( -name "*~" -or -name "#*" \) -delete find . -type f \( -name "*.swp" \) -delete @@ -170,8 +171,9 @@ clean: rm -rf docs/js @echo "Cleaning up authors file" rm -f AUTHORS.TXT - find . -type f -name '*.pyc' -delete - rm -f /test/units/.coverage* + @echo "Cleaning up tests" + rm -f test/units/.coverage* + rm -f test/results/*/* @echo "Cleaning up docsite" $(MAKE) -C docs/docsite clean $(MAKE) -C docs/api clean