#!/usr/bin/make -f

export PYBUILD_NAME=sensor-state-data
export PYBUILD_TEST_ARGS=--no-cov

%:
	dh $@ --buildsystem=pybuild

override_dh_installdocs:
	dh_installdocs --doc-main-package=python3-sensor-state-data -p python-sensor-state-data-doc
	dh_installdocs -p python3-sensor-state-data

execute_after_dh_auto_build:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	cd docs && LC_ALL=C.UTF-8 LANGUAGE=C.UTF-8 sphinx-build -b html source _build/html
endif
