#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1
export DPKG_GENSYMBOLS_CHECK_LEVEL = 4

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --with-mdns=avahi --enable-gtk-doc

execute_before_dh_install:
	find debian/tmp -name '*.la' -print -delete
	find debian/tmp -name '*.a' -print -delete

override_dh_auto_test:
	# No dh_auto_test because this is calling a make rule
	# used by the upstream maintainers and not behaving
	# properly (not properly defining CFLAGS)
	# Keep it empty until upstream rename these rules
	# See https://bugs.debian.org/1055324
