#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed

CONFIG=--prefix=/usr --libdir=/usr/lib

override_dh_auto_clean:
	dh_auto_clean
	rm -rf stamp-h sources/generated/*

override_dh_auto_configure:
	dh_auto_configure --parallel -- $(CONFIG)

override_dh_auto_install:
	dh_auto_install --parallel --destdir=$(CURDIR)/debian/tmp

override_dh_makeshlibs:
	dh_makeshlibs -n -plibappindicator3-0.1-cil
	dh_makeshlibs --remaining-packages

%:
	dh $@ --parallel --with autoreconf --with cli
