Skip to content

Commit

Permalink
Add a Makefile target 'distclean' for deleting project metadata files (
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman authored Dec 18, 2020
1 parent b1e7f31 commit 97869e2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 97869e2

Please sign in to comment.