#!/usr/bin/make -f

%:
	dh $@ --without single-binary

override_dh_auto_configure:
	dh_auto_configure -- \
		-Dtests=$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),false,true) \

execute_before_dh_install:
	# modify install links (https://bugs.debian.org/938994)
	for d in $(CURDIR)/debian/tmp/usr/share/help/*/gnome-help; do \
		cd $$d; \
		sed -i 's/action="install:/href="apt:/' *.page; \
	done
