Skip to content

Commit 97869e2

Browse files
authored
Add a Makefile target 'distclean' for deleting project metadata files (#744)
1 parent b1e7f31 commit 97869e2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ help:
1818
@echo " check run code style and quality checks (black, blackdoc and flake8)"
1919
@echo " lint run pylint for a deeper (and slower) quality check"
2020
@echo " clean clean up build and generated files"
21+
@echo " distclean clean up build and generated files, including project metadata files"
2122
@echo ""
2223

2324
install:
@@ -47,10 +48,13 @@ lint:
4748
pylint $(LINT_FILES)
4849

4950
clean:
50-
find . -name "*.pyc" -exec rm -v {} \;
51-
find . -name "*~" -exec rm -v {} \;
51+
find . -name "*.pyc" -exec rm -v {} +
52+
find . -name "*~" -exec rm -v {} +
5253
find . -type d -name "__pycache__" -exec rm -rv {} +
53-
rm -rvf build dist MANIFEST *.egg-info .coverage .cache htmlcov coverage.xml
54+
rm -rvf build dist MANIFEST .coverage .cache .pytest_cache htmlcov coverage.xml
5455
rm -rvf $(TESTDIR)
5556
rm -rvf baseline
5657
rm -rvf result_images
58+
59+
distclean: clean
60+
rm -r *.egg-info

0 commit comments

Comments
 (0)