Skip to content

Commit

Permalink
New rules for 'make clean'
Browse files Browse the repository at this point in the history
  • Loading branch information
vcalderon2009 committed Jun 3, 2018
1 parent eb60a93 commit 26e37d2
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,31 @@ endif
# COMMANDS #
#################################################################################

## Delete all compiled Python files
clean:
find . -name "*.pyc" -exec rm {} \;
## Deletes all build, test, coverage, and Python artifacts
clean: clean-build clean-pyc clean-test

## Removes Python file artifacts
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +

## Remove build artifacts
clean-build:
rm -fr build/
rm -fr dist/
rm -fr .eggs/
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -f {} +

## Remove test and coverage artifacts
clean-test:
rm -fr .tox/
rm -f .coverage
rm -fr htmlcov/
rm -fr .pytest_cache


## Lint using flake8
lint:
Expand Down

0 comments on commit 26e37d2

Please sign in to comment.