mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Clear __pycache__, tests/build and .tox on make clean
This commit is contained in:
parent
24beece2a3
commit
ae0fab15d3
9
Makefile
9
Makefile
@ -33,12 +33,15 @@ all: clean-pyc clean-backupfiles style-check test
|
|||||||
style-check:
|
style-check:
|
||||||
@$(PYTHON) utils/check_sources.py $(DONT_CHECK) .
|
@$(PYTHON) utils/check_sources.py $(DONT_CHECK) .
|
||||||
|
|
||||||
clean: clean-pyc clean-patchfiles clean-backupfiles clean-generated
|
clean: clean-pyc clean-pycache clean-patchfiles clean-backupfiles clean-generated clean-testfiles
|
||||||
|
|
||||||
clean-pyc:
|
clean-pyc:
|
||||||
find . -name '*.pyc' -exec rm -f {} +
|
find . -name '*.pyc' -exec rm -f {} +
|
||||||
find . -name '*.pyo' -exec rm -f {} +
|
find . -name '*.pyo' -exec rm -f {} +
|
||||||
|
|
||||||
|
clean-pycache:
|
||||||
|
find . -name __pycache__ -exec rm -rf {} +
|
||||||
|
|
||||||
clean-patchfiles:
|
clean-patchfiles:
|
||||||
find . -name '*.orig' -exec rm -f {} +
|
find . -name '*.orig' -exec rm -f {} +
|
||||||
find . -name '*.rej' -exec rm -f {} +
|
find . -name '*.rej' -exec rm -f {} +
|
||||||
@ -50,6 +53,10 @@ clean-backupfiles:
|
|||||||
clean-generated:
|
clean-generated:
|
||||||
rm -f utils/*3.py*
|
rm -f utils/*3.py*
|
||||||
|
|
||||||
|
clean-testfiles:
|
||||||
|
rm -rf tests/build
|
||||||
|
rm -rf .tox/
|
||||||
|
|
||||||
pylint:
|
pylint:
|
||||||
@pylint --rcfile utils/pylintrc sphinx
|
@pylint --rcfile utils/pylintrc sphinx
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user