#!/usr/bin/make -f

%:
	dh $@ --with autoreconf,autotools_dev --parallel

override_dh_autoreconf:
	NOCONFIGURE=x dh_autoreconf ./autogen.sh

override_dh_auto_configure:
	dh_auto_configure -- --libdir=/usr/lib

export DEB_PLUGINS_PKG_DIR=$(shell pwd)/debian/jpilot-plugins
export DEB_PLUGINS_DIR=$(DEB_PLUGINS_PKG_DIR)/usr/lib/jpilot/plugins
