#!/usr/bin/make -f

include /usr/share/postgresql-common/pgxs_debian_control.mk

override_dh_auto_build:
	# nothing to do there, we use `pg_buildext loop`

override_dh_auto_test:
	# nothing to do here, see debian/tests/* instead

override_dh_auto_install:
	+pg_buildext loop postgresql-%v-first-last-agg

override_dh_installdocs:
	dh_installdocs --all README.*

override_dh_lintian:
	for v in $(shell pg_buildext supported-versions); do \
	  echo '# plugin does not call into any functions' > debian/postgresql-$$v-first-last-agg.lintian-overrides; \
	  echo 'shared-lib-without-dependency-information' >> debian/postgresql-$$v-first-last-agg.lintian-overrides; \
	done
	dh_lintian

%:
	dh $@
