#!/usr/bin/make -f

# for DEB_VERSION_UPSTREAM
include /usr/share/dpkg/pkg-info.mk

export PYBUILD_NAME=dt-schema
%:
	dh $@ --with python3,single-binary --buildsystem=pybuild

execute_before_dh_installman:
	set -e; for bin in dt-check-compatible dt-cmp-schema dt-doc-validate dt-extract-example dt-extract-props dt-mk-schema dt-validate dtb2py; do \
		PYTHONPATH=. help2man ./debian/dt-schema/usr/bin/$$bin --no-info --version-string=$(DEB_VERSION_UPSTREAM) > debian/$$bin.1; \
	done
