#!/usr/bin/make -f

SHELL := /bin/bash

export DEB_CFLAGS_MAINT_APPEND=$(shell dpkg-buildflags --get CPPFLAGS)
export DEB_CXXFLAGS_MAINT_APPEND=$(shell dpkg-buildflags --get CPPFLAGS)
export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed

override_dh_autoreconf:
	dh_autoreconf build/autogen.sh

override_dh_auto_configure:
	dh_auto_configure

override_dh_makeshlibs:
	dh_makeshlibs -- -c4

execute_before_dh_install:
	find debian -name '*.la' -delete

override_dh_auto_test:

override_dh_auto_clean:

%:
	dh $@
