#!/usr/bin/make -f

export DH_VERBOSE = 1
export PYBUILD_NAME = pprocess

# one ring to rule them all ...
%:
	dh $@ --with python2 --buildsystem=pybuild


override_dh_auto_build:
	dh_auto_build
	# generating api documentation
	tools/apidocs.sh

clean::
	dh_clean
	find . -name '*.py[co]' -delete
	[ ! -d build ] || rm -rf build
	[ ! -d .pybuild ] || rm -rf .pybuild
	[ ! -d apidocs ] || rm -rf apidocs

override_dh_auto_test:
	# Run rudimentary tests
	PYTHONPATH=. python tests/create_loop.py
	PYTHONPATH=. python tests/start_loop.py
	PYTHONPATH=. python tests/start_indexer.py docs 4 5 0.1 --noprompt

#	dh_installdocs		
#	dh_installexamples	examples/* tests
