GTK_CFLAGS = @GTK_CFLAGS@
GTK_LIBS = @GTK_LIBS@
+# If REGRESS=1 passed as a parameter, change the default install paths
+# so that no prefix is included. This allows us to relocate to a temporary
+# directory for regression testing.
+ifeq ($(REGRESS),1)
+ bindir=/bin
+ pkglibdir=/lib
+ datadir=/share
+endif
+
# The real parts of the Makefile
all: $(SHP2PGSQL) $(PGSQL2SHP) @GTK_BUILD@
#!/bin/sh
DB=postgis_reg
-SHP2PGSQL=../loader/shp2pgsql
-PGSQL2SHP=../loader/pgsql2shp
+
+# TODO: get this part generated by ./configure. For now
+# we must make sure this matches REGRESS_INSTALLDIR in
+# Makefile.in.
+SHP2PGSQL=00-regress-install/bin/shp2pgsql
+PGSQL2SHP=00-regress-install/bin/pgsql2shp
###################################################
#