#!/usr/bin/make -f
DH_VERBOSE=1

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with gir

override_dh_autoreconf:
	gtkdocize
	NOCONFIGURE=1 dh_autoreconf ./autogen.sh

override_dh_install:
	rm debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/libsignon-glib.la
	dh_install

override_dh_strip:
	dh_strip --dbgsym-migration='libsignon-glib-dbg (<< 1.15-1~)'

override_dh_clean:
	[ ! -f Makefile ] || $(MAKE) distclean
	dh_clean
