1help:
2	@echo "Please use 'make <target>' where <target> is one of"
3	@echo "  clean           remove temporary files created by build tools"
4	@echo "  cleanegg        remove temporary files created by build tools"
5	@echo "  cleanpy         remove temporary python files"
6	@echo "  cleancov        remove files used and generated by coverage tools"
7	@echo "  cleanall        all the above + tmp files from development tools (Not cleantox)"
8	@echo "  cleantox        remove files created by tox"
9	@echo "  test            run test suite"
10	@echo "  sdist           make a source distribution"
11	@echo "  install         install package"
12
13clean:
14	-rm -f MANIFEST
15	-rm -rf dist/
16	-rm -rf build/
17
18cleantox:
19	-rm -rf .tox/
20
21cleancov:
22	coverage combine
23	coverage erase
24	-rm -rf htmlcov/
25
26cleanegg:
27	-rm -rf pykwalify.egg-info/
28
29cleanpy:
30	-find . -type f -name "*~" -exec rm -f "{}" \;
31	-find . -type f -name "*.orig" -exec rm -f "{}" \;
32	-find . -type f -name "*.rej" -exec rm -f "{}" \;
33	-find . -type f -name "*.pyc" -exec rm -f "{}" \;
34	-find . -type f -name "*.parse-index" -exec rm -f "{}" \;
35	-find . -type d -name "__pycache__" -exec rm -rf "{}" \;
36
37cleanall: clean cleanegg cleanpy cleancov
38
39test:
40	coverage erase
41	coverage run --source pykwalify/ -m python py.test
42
43sdist:
44	python setup.py sdist
45
46install:
47	python setup.py install
48