11# PGXS: PostgreSQL extensions makefile
22
3- # $PostgreSQL: pgsql/src/makefiles/pgxs.mk,v 1.5 2005/08/12 21:02:25 momjian Exp $
3+ # $PostgreSQL: pgsql/src/makefiles/pgxs.mk,v 1.6 2005/09/27 17:43:31 tgl Exp $
44
55# This file contains generic rules to build many kinds of simple
66# extension modules. You only need to set a few variables and include
@@ -205,6 +205,11 @@ distclean maintainer-clean: clean
205205
206206ifdef REGRESS
207207
208+ # Calling makefile can set REGRESS_OPTS, but this is the default:
209+ ifndef REGRESS_OPTS
210+ REGRESS_OPTS = --dbname=$(CONTRIB_TESTDB )
211+ endif
212+
208213# When doing a VPATH build, must copy over the test .sql and .out
209214# files so that the driver script can find them. We have to use an
210215# absolute path for the targets, because otherwise make will try to
@@ -224,7 +229,9 @@ endif # VPATH
224229
225230.PHONY : submake
226231submake :
232+ ifndef PGXS
227233$(MAKE) -C $(top_builddir)/src/test/regress pg_regress
234+ endif
228235
229236# against installed postmaster
230237installcheck : submake