#!/usr/bin/make -f

export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

export PYBUILD_NAME=pomegranate
export PYBUILD_PYTEST=true

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_build:
	dh_auto_build
	# cleaning up auto-generated files
	find . -name "*.c" -delete

override_dh_auto_clean:
	dh_auto_clean
	# cleaning up auto-generated files
	find . -name "*.c" -delete

# If you need to rebuild the Sphinx documentation
# Add spinxdoc to the dh --with line
#override_dh_auto_build:
#	dh_auto_build
#	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml        docs/ build/html # HTML generator
#	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bman        docs/ build/man # Manpage generator

override_dh_python3:
	dh_python3
	dh_numpy3
