diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile
index 3b7120b11cb7a1cf8e470cfaab37815293fc66f3..43d29cd8f929dd997ca3457c29338fe8608c30d7 100644
--- a/src/test/regress/GNUmakefile
+++ b/src/test/regress/GNUmakefile
@@ -7,7 +7,7 @@
 #
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.25 2000/10/02 06:07:25 tgl Exp $
+#    $Header: /cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.26 2000/10/07 20:23:03 petere Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -36,6 +36,7 @@ pg_regress: pg_regress.sh GNUmakefile
 	    -e 's,@datadir@,$(datadir),g' \
 	    -e 's/@VERSION@/$(VERSION)/g' \
 	    -e 's/@host_tuple@/$(host_tuple)/g' \
+	    -e 's,@GMAKE@,$(MAKE),g' \
 	  $< >$@
 	chmod a+x $@
 
diff --git a/src/test/regress/pg_regress.sh b/src/test/regress/pg_regress.sh
index a78730f7a4a16e9a67c346df88a6fc5645f67656..34584a6e4f03d41cde0753d741eda1ddbcfbfef6 100644
--- a/src/test/regress/pg_regress.sh
+++ b/src/test/regress/pg_regress.sh
@@ -1,5 +1,5 @@
 #! /bin/sh
-# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.6 2000/10/07 14:55:16 momjian Exp $
+# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.7 2000/10/07 20:23:03 petere Exp $
 
 me=`basename $0`
 : ${TMPDIR=/tmp}
@@ -87,6 +87,8 @@ export PGPORT
 dbname=regression
 hostname=`hostname` || hostname=localhost
 
+: ${GMAKE='@GMAKE@'}
+
 
 # ----------
 # Parse command line options
@@ -169,17 +171,6 @@ case $host_platform in
         DIFFFLAGS=-w;;
 esac
 
-# ----------
-# Set up the GMAKE variable correctly.
-# ----------
-
-case $host_platform in
-    *beos*)
-        GMAKE=make;;
-    *)
-        GMAKE=gmake;;
-esac
-
 
 # ----------
 # Set backend timezone and datestyle explicitly
@@ -297,7 +288,7 @@ then
 
     message "creating temporary installation"
     mkdir -p "$LOGDIR" || { (exit 2); exit; }
-    ${MAKE:-$GMAKE} -C "$top_builddir" DESTDIR="$temp_install" install >"$LOGDIR/install.log" 2>&1
+    $GMAKE -C "$top_builddir" DESTDIR="$temp_install" install >"$LOGDIR/install.log" 2>&1
 
     if [ $? -ne 0 ]
     then