#!/usr/bin/make -f

%:
	dh $@ --with autoreconf

override_dh_autoreconf:
	NOCONFIGURE=x dh_autoreconf ./autogen.sh

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

override_dh_auto_install:
	dh_auto_install
	rm debian/tmp/usr/share/jpilot/Ma*naDB.pdb

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