.PHONY: clean-pyc test upload-docs

all: clean-pyc test

test:
	cd tests; python tests.py

clean-pyc:
	find . -name '*.pyc' -exec rm -f {} +
	find . -name '*.pyo' -exec rm -f {} +
	find . -name '*~' -exec rm -f {} +

upload-docs:
	$(MAKE) -C docs html
	python setup.py upload_sphinx
