#!/usr/bin/make -f

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,--as-needed

%:
	dh $@ --with autoreconf,gir

override_dh_auto_configure:
	dh_auto_configure -- \
		--libexecdir=/usr/lib/NetworkManager \
		--disable-more-warnings \
		--enable-migration \
		--enable-introspection \
		--with-gtkver=3 \

override_dh_install:
	dh_install --list-missing
	find debian/network-manager-gnome/ -name \*.la -o -name \*.a | xargs rm -f

override_dh_builddeb:
	dh_builddeb -- -Zxz

override_dh_auto_test:
