#!/usr/bin/make -f

ifeq (,$(filter terse,$(DEB_BUILD_OPTIONS)))
	export DH_VERBOSE = 1
else
	CONF_OPTIONS := --quiet
endif

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall -Wno-deprecated-declarations

%:
	dh $@

override_dh_autoreconf:
	dh_autoreconf

override_dh_auto_configure:
	dh_auto_configure -- $(CONF_OPTIONS)

override_dh_auto_install:
	dh_auto_install
	find debian/seahorse-nautilus -name '*.la' -exec rm -f {} \;

override_dh_makeshlibs:
	# libnautilus-seahorse.so is a plugin, not a shared library
	dh_makeshlibs -Xlibnautilus-seahorse
