#!/usr/bin/make -f

export DH_VERBOSE=1
export PYBUILD_TEST_ARGS=-v test
export CFLAGS=-I/usr/lib/python3/dist-packages/numpy/core/include

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_auto_install:
	for i in debian/python3-freesas/usr/bin/* ; do PYTHONPATH=$$(echo debian/python3-freesas/usr/lib/python*/dist-packages) HOME=$(CURDIR)/_build PATH=_build/bin:$$PATH help2man --output=$$(basename $$i).1 --version-string=$$(dpkg-parsechangelog -S Version | sed s/-[^-]*$$//) --help-option --help --no-discard-stderr $$i ; done
