#!/usr/bin/make -f

X11_PORT=40
X11_USED_NAMESPACE_SOCKETS = $(shell debian/helpers//X11_used_namespace_sockets)
export DISPLAY=$(shell debian/helpers/X11_get_unused_socket $(X11_PORT) "$(X11_USED_NAMESPACE_SOCKETS)")
XVFB_PID=$(shell debian/helpers/X11_launch_Xvfb $(DISPLAY))

%:
	dh $@

override_dh_auto_test:
	DISPLAY=":$(DISPLAY)" dh_auto_test
	# if the below fails, the build chroot will tear down the running Xvfb process...
	-kill -SIGKILL $(XVFB_PID)

get-orig-source:
	uscan --noconf --force-download --rename --download-current-version --destdir=..
