#! /usr/bin/make -f

export PYBUILD_NAME=cocotb
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export COCOTB_IGNORE_PYTHON_REQUIRES=1

%:
	dh $@ --with python3 --buildsystem=pybuild --no-parallel

# Prevent addition of multiarch tuples to cocotb/libs/lib*.so:
override_dh_python3:
	dh_python3 --no-ext-rename
override_dh_auto_build:
	dh_auto_build
	PYTHONPATH=src/ help2man 'python3 src/cocotb_tools/config.py' \
	 --no-info --version-string=- -n 'Query cocotb configuration' | \
	 sed -e 's#config\.py#cocotb-config#g;s#usage: ##' \
	 > cocotb-config.1
