#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS := hardening=+all

CONFIG_OPT=--prefix=/usr \
           --mandir=/usr/share/man \
           --infodir=/usr/share/info \
           --with-libpq-includes=/usr/include/postgresql \
           PQ_CFLAGS="-I`pg_config --includedir`" \
           PQ_LDFLAGS=""

%:
	dh $@ --with autotools_dev

override_dh_auto_configure:
	dh_auto_configure -- $(CONFIG_OPT)

override_dh_auto_test:

override_dh_auto_install:
	dh_auto_install
	find $(CURDIR)/debian/guile-pg/usr/lib/*/guile-pg/ -name *.la -delete
