1help:
2	@echo "clean - remove all build, test, coverage and Python artifacts"
3	@echo "clean-build - remove build artifacts"
4	@echo "clean-pyc - remove Python file artifacts"
5	@echo "clean-test - remove test and coverage artifacts"
6	@echo "compile-catalog - compile translation catalogs"
7	@echo "test - run tests quickly with the default Python"
8	@echo "coverage - check code coverage quickly with the default Python"
9	@echo "install - install the package to the active Python's site-packages"
10
11clean: clean-test clean-build clean-pyc
12
13clean-build:
14	rm -fr build/
15	rm -fr dist/
16	rm -fr .eggs/
17	find . -name '*.egg-info' -exec rm -fr {} +
18	find . -name '*.egg' -exec rm -fr {} +
19
20clean-pyc:
21	find . -name '*.pyc' -exec rm -f {} +
22	find . -name '*.pyo' -exec rm -f {} +
23	find . -name '*~' -exec rm -f {} +
24	find . -name '__pycache__' -exec rm -fr {} +
25
26clean-test:
27	rm -fr .cache/
28	rm -fr .tox/
29	rm -f .coverage
30	rm -fr htmlcov/
31
32compile-catalog:
33	for loc in django_extensions/locale/*; do \
34		python setup.py compile_catalog --directory django_extensions/locale/ --locale $$(basename $$loc) --domain django || exit 1; \
35	done
36
37test:
38	python setup.py test
39
40coverage:
41	coverage run --source django_extensions setup.py test
42	coverage report -m
43	coverage html
44
45install: clean
46	python setup.py install
47