#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

export DPKG_GENSYMBOLS_CHECK_LEVEL=4

%:
	dh $@

override_dh_install:
	find debian/lomiri-indicator-location/usr/lib -name *.la -delete
	find debian/lomiri-indicator-location/usr/lib -name *.a -delete
	dh_install

override_dh_missing:
	dh_missing  --fail-missing

# Hack as it seems it's not possible to easy run that under dbus-test-runner
override_dh_auto_test:
	env -u LD_PRELOAD dh_auto_test

get-orig-source:
	uscan --noconf --force-download --rename --download-current-version --destdir=..
