#!/usr/bin/make -f

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

%:
	USE_PGXS=1 make
	dh $@

override_dh_auto_build:


override_dh_auto_install:
	pg_buildext loop postgresql-%v-pldebugger
	#rm -r $(CURDIR)/debian/*/usr/share/doc/postgresql-doc-*

override_dh_installdocs:
	dh_installdocs -A README.pldebugger

override_dh_auto_clean:
	USE_PGXS=1 make clean