#!/usr/bin/make -f

SOURCE=wayland

# Don't build the documentation when not building arch:all packages
ifeq (,$(filter libwayland-doc,$(shell dh_listpackages)))
configure_flags += -Ddocumentation=false
endif

override_dh_auto_configure:
	dh_auto_configure -- $(configure_flags)

override_dh_auto_test:
	# the test suite does not pass completely in headless mode
	dh_auto_test || true

%:
	dh $@ --with quilt --builddirectory=build/ --buildsystem=meson
