#!/usr/bin/make -f

%:
	dh $@ --with pgxs

override_dh_auto_configure:
	set -eux; for v in $(shell pg_buildext supported-versions); do dh_auto_configure -Bbuild-$$v -- -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DPG_CONFIG=/usr/lib/postgresql/$$v/bin/pg_config; done

override_dh_pgxs_test:
	# defer to autopkgtest

override_dh_installdocs:
	dh_installdocs --all README.*
