From: Sandro Santilli Date: Wed, 13 Mar 2019 15:10:30 +0000 (+0000) Subject: Ensure "make check" uses configured PostgreSQL target bins under regress too X-Git-Tag: 3.0.0alpha1~91 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82b562f077abca67735c190aab74c5f45b1d74d5;p=postgis Ensure "make check" uses configured PostgreSQL target bins under regress too References #4349 git-svn-id: http://svn.osgeo.org/postgis/trunk@17340 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/regress/Makefile.in b/regress/Makefile.in index 6f2d6841d..b65d4bc85 100644 --- a/regress/Makefile.in +++ b/regress/Makefile.in @@ -22,6 +22,17 @@ else endif REGRESS_INSTALLDIR=$(srcdir)/00-regress-install +# MingW hack: rather than use PGSQL_BINDIR directly, we change to the directory and +# then use "pwd" to return the path. This ensures that the returned path is in MSYS +# format, otherwise colons in drive letters will break PATH. +PGSQL_BINDIR=$(shell cd "@PGSQL_BINDIR@" && pwd) + +# +# Put path from pg_config into front of search path +# +PATH := $(PGSQL_BINDIR):$(PATH) +export PATH + all install uninstall: check: staged-install