#!/usr/bin/make -f
	
export PYTHONPATH=$(CURDIR)

%:
	dh $@ --buildsystem python_distutils --with python2,sphinxdoc

build:
	dh build
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
	make test
endif

override_dh_installdocs:
	dh_installdocs
	PYTHONPATH=. sphinx-build -N -q -E -b html docs/ debian/python-flask-doc/usr/share/doc/python-flask/html/

clean:
	dh clean
	rm -rf Flask.egg-info/ build
	find . \( -name '*.py[co]' -or -name '\._*' -or -name '\.DS_Store' \) -delete
