#!/usr/bin/make -f

#export DH_VERBOSE = 1
export PYBUILD_NAME = sphinxcontrib.phpdomain

%:
	dh $@ --buildsystem=pybuild

ifeq ($(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)),)
execute_before_dh_installdocs:
	cd doc && make text
endif

execute_after_dh_auto_test:
	make -C test/unit clean
	PYTHONPATH=$(CURDIR) make -C test/unit html SPHINXOPTS='-W'
	make -C test/unit comparehtml
