#!/usr/bin/make -f

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -Wl,-O1 -Wl,-z,defs

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

override_dh_auto_install:
	dh_auto_install

	# Remove libtool archives - not allowed
	find debian/xfce4-hardware-monitor-plugin/usr/lib -name '*.la' -delete

override_dh_autoreconf:
	dh_autoreconf ./autogen.sh
