summaryrefslogtreecommitdiff
path: root/Makefile
blob: d5074ad13007f7848b6b8df2c33e7436ccf284ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Makefile to simplify some common development tasks.
# Run 'make help' for a list of commands.

PYTHON=`which python`

default: help

help:
	@echo "Available commands:"
	@sed -n '/^[a-zA-Z0-9_.]*:/s/:.*//p' <Makefile | sort

test:
	tox

coverage:
	py.test --cov=sqlparse --cov-report=html --cov-report=term

clean:
	@$(PYTHON) setup.py clean
	@find . -name '*.pyc' -delete
	@find . -name '*~' -delete
	@rm -rf *.egg-info
	@rm -rf dist
	@rm -rf htmlcov
	@find . -name '__pycache__' -delete