.PHONY: clean install help test run dependencies

help:
	@echo "  clean      remove unwanted stuff"
	@echo "  install    install flaskbb and setup"
	@echo "  tests      run the testsuite"
	@echo "  run        run the development server"

dependencies:requirements.txt
	pip install -r requirements.txt

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

test:
	py.test --cov=flaskbb --cov-report=term-missing tests

run:
	python manage.py runserver -dr

install:dependencies
	clear
	python manage.py install