#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# libgolplug.a is linked into the plugins and needs -fPIC, and the plugins
# rely on lazy binding (LP: #1783209). 0019-enable-pie-and-bindnow-for-gol.patch
# enables PIE and BIND_NOW for the gol executable instead.
export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie,-bindnow
DPKG_EXPORT_BUILDFLAGS=1
include /usr/share/dpkg/buildflags.mk

%:
	dh  $@

override_dh_auto_configure:
	dh_auto_configure -- --with-gtk3 --with-gtk-layer-shell --with-appindicator=ayatana

override_dh_install:
	dh_install
	find $(CURDIR)/debian -name *.la -delete
	find $(CURDIR)/debian -name *.a -delete
	find $(CURDIR)/debian -name libtweets* -delete
