#!/usr/bin/make -f

export DH_VERBOSE = 1
export PYBUILD_NAME=mirtop

%:
	dh $@ --with sphinxdoc --buildsystem=pybuild

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	# No tests, yet
	@echo "Not testing."
endif

execute_after_dh_install:
	rm debian/python3-mirtop/usr/bin/mirtop

execute_after_dh_auto_build:
	PYTHONPATH=. python3 -m sphinx -N -bman docs/ build/man # Manpage generator
