#!/usr/bin/make -f export PYBUILD_NAME=cantools %: dh $@ --buildsystem=pybuild execute_after_dh_auto_build: ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES))) PYTHONPATH=$(CURDIR)/src python3 -m sphinx -N -E -bhtml docs/ $(CURDIR)/build/html PYTHONPATH=$(CURDIR)/src python3 -m sphinx -N -E -bman docs/ $(CURDIR)/build/man endif