From 457d09ad6f5808854b2609ab0cabf8c5aeb29d85 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Thu, 17 Dec 2020 15:48:48 -0500 Subject: [PATCH] Add a new target 'distclean' for delete project metadata files --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 2c6c52904dc..e96470f6bd7 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,7 @@ help: @echo " check run code style and quality checks (black, blackdoc and flake8)" @echo " lint run pylint for a deeper (and slower) quality check" @echo " clean clean up build and generated files" + @echo " distclean clean up build and generated files, including project metadata files" @echo "" install: @@ -47,10 +48,13 @@ lint: pylint $(LINT_FILES) clean: - find . -name "*.pyc" -exec rm -v {} \; - find . -name "*~" -exec rm -v {} \; + find . -name "*.pyc" -exec rm -v {} + + find . -name "*~" -exec rm -v {} + find . -type d -name "__pycache__" -exec rm -rv {} + - rm -rvf build dist MANIFEST *.egg-info .coverage .cache htmlcov coverage.xml + rm -rvf build dist MANIFEST .coverage .cache .pytest_cache htmlcov coverage.xml rm -rvf $(TESTDIR) rm -rvf baseline rm -rvf result_images + +distclean: clean + rm -r *.egg-info