Skip to content

Commit 27d4fc8

Browse files
committed
build: make help, and a quieter test target
1 parent 33a5112 commit 27d4fc8

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Makefile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33

44
# Makefile for django_coverage_plugin
55

6-
default:
7-
@echo "* No default action *"
6+
help: ## Show this help.
7+
@echo "Available targets:"
8+
@grep '^[a-zA-Z]' $(MAKEFILE_LIST) | sort | awk -F ':.*?## ' 'NF==2 {printf " %-26s%s\n", $$1, $$2}'
89

9-
test:
10-
tox
10+
test: ## Run all the tests.
11+
tox -q -- -q
1112

12-
clean:
13+
clean: ## Remove non-source files.
1314
-rm -rf *.egg-info
1415
-rm -rf build dist
1516
-rm -f *.pyc */*.pyc */*/*.pyc */*/*/*.pyc */*/*/*/*.pyc */*/*/*/*/*.pyc
@@ -20,7 +21,7 @@ clean:
2021
-rm -f .coverage .coverage.* coverage.xml
2122
-rm -f setuptools-*.egg distribute-*.egg distribute-*.tar.gz
2223

23-
sterile: clean
24+
sterile: clean ## Remove all non-controlled content, even if expensive.
2425
-rm -rf .tox*
2526

2627
SDIST_CMD = python setup.py sdist --formats=gztar

0 commit comments

Comments
 (0)