#!/usr/bin/make -f

include /usr/share/libdbi-perl/perl-dbdabi.make

PG_INCLUDEDIR = $(shell pg_config --includedir)
PG_LIBDIR = $(shell pg_config --libdir)

export POSTGRES_INCLUDE=$(PG_INCLUDEDIR)
export POSTGRES_LIB=$(PG_LIBDIR)

%:
	dh $@

override_dh_gencontrol:
	dh_gencontrol -- -V"libdbi-perl:Depends=libdbi-perl, $(PERL_DBDABI_DEPENDS)"

override_dh_auto_test:
	TEST_AUTHOR=1 dh_auto_test
