diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-10-08 07:38:19 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-10-08 07:38:19 -0400 |
commit | 56f850956513578b2a73ac1e1be5e3c9483432e6 (patch) | |
tree | 9d7a5322d47f4a3cea3d16f5a3f2db0e09906f2c | |
parent | 6a47234fa274a02c9e958a2e53216671635f0849 (diff) | |
download | python-coveragepy-git-56f850956513578b2a73ac1e1be5e3c9483432e6.tar.gz |
build: make "clean" targets be quiet
-rw-r--r-- | Makefile | 41 | ||||
-rw-r--r-- | tests/gold/html/Makefile | 2 |
2 files changed, 22 insertions, 21 deletions
@@ -8,28 +8,29 @@ help: ## Show this help. @grep '^[a-zA-Z]' $(MAKEFILE_LIST) | sort | awk -F ':.*?## ' 'NF==2 {printf " %-26s%s\n", $$1, $$2}' clean_platform: ## Remove files that clash across platforms. - rm -f *.so */*.so - rm -rf __pycache__ */__pycache__ */*/__pycache__ */*/*/__pycache__ */*/*/*/__pycache__ */*/*/*/*/__pycache__ - rm -f *.pyc */*.pyc */*/*.pyc */*/*/*.pyc */*/*/*/*.pyc */*/*/*/*/*.pyc - rm -f *.pyo */*.pyo */*/*.pyo */*/*/*.pyo */*/*/*/*.pyo */*/*/*/*/*.pyo + @rm -f *.so */*.so + @rm -rf __pycache__ */__pycache__ */*/__pycache__ */*/*/__pycache__ */*/*/*/__pycache__ */*/*/*/*/__pycache__ + @rm -f *.pyc */*.pyc */*/*.pyc */*/*/*.pyc */*/*/*/*.pyc */*/*/*/*/*.pyc + @rm -f *.pyo */*.pyo */*/*.pyo */*/*/*.pyo */*/*/*/*.pyo */*/*/*/*/*.pyo clean: clean_platform ## Remove artifacts of test execution, installation, etc. - -pip uninstall -y coverage - rm -f *.pyd */*.pyd - rm -rf build coverage.egg-info dist htmlcov - rm -f *.bak */*.bak */*/*.bak */*/*/*.bak */*/*/*/*.bak */*/*/*/*/*.bak - rm -f *$$py.class */*$$py.class */*/*$$py.class */*/*/*$$py.class */*/*/*/*$$py.class */*/*/*/*/*$$py.class - rm -f coverage/*,cover - rm -f MANIFEST - rm -f .coverage .coverage.* coverage.xml .metacov* - rm -f .tox/*/lib/*/site-packages/zzz_metacov.pth - rm -f */.coverage */*/.coverage */*/*/.coverage */*/*/*/.coverage */*/*/*/*/.coverage */*/*/*/*/*/.coverage - rm -f tests/covmain.zip tests/zipmods.zip tests/zip1.zip - rm -rf doc/_build doc/_spell doc/sample_html_beta - rm -rf tmp - rm -rf .cache .pytest_cache .hypothesis - rm -rf tests/actual - -make -C tests/gold/html clean + @echo "Cleaning..." + @-pip uninstall -yq coverage + @rm -f *.pyd */*.pyd + @rm -rf build coverage.egg-info dist htmlcov + @rm -f *.bak */*.bak */*/*.bak */*/*/*.bak */*/*/*/*.bak */*/*/*/*/*.bak + @rm -f *$$py.class */*$$py.class */*/*$$py.class */*/*/*$$py.class */*/*/*/*$$py.class */*/*/*/*/*$$py.class + @rm -f coverage/*,cover + @rm -f MANIFEST + @rm -f .coverage .coverage.* coverage.xml .metacov* + @rm -f .tox/*/lib/*/site-packages/zzz_metacov.pth + @rm -f */.coverage */*/.coverage */*/*/.coverage */*/*/*/.coverage */*/*/*/*/.coverage */*/*/*/*/*/.coverage + @rm -f tests/covmain.zip tests/zipmods.zip tests/zip1.zip + @rm -rf doc/_build doc/_spell doc/sample_html_beta + @rm -rf tmp + @rm -rf .cache .pytest_cache .hypothesis + @rm -rf tests/actual + @-make -C tests/gold/html clean sterile: clean ## Remove all non-controlled content, even if expensive. rm -rf .tox diff --git a/tests/gold/html/Makefile b/tests/gold/html/Makefile index c10ede3f..fc3487cd 100644 --- a/tests/gold/html/Makefile +++ b/tests/gold/html/Makefile @@ -15,7 +15,7 @@ complete: ## Copy support files into directories so the HTML can be viewed prop true # because the for loop exits with 1 for some reason. clean: ## Remove the effects of this Makefile. - git clean -fq . + @git clean -fq . update-gold: ## Copy output files from latest tests to gold files. echo Note: this doesn't work now, it has to be updated for tests/actual |