Install pg_regress where PGXS' "make installcheck" can find it.
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 28 Nov 2005 12:03:56 +0000 (12:03 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 28 Nov 2005 12:03:56 +0000 (12:03 +0000)
src/Makefile
src/test/regress/GNUmakefile

index 0963f88a8fc0092b37d78dcb25e65a532ef877d9..03854405ae4c10c2a0bb280f17dbe22856afcbc1 100644 (file)
@@ -4,7 +4,7 @@
 #
 # Copyright (c) 1994, Regents of the University of California
 #
-# $PostgreSQL: pgsql/src/Makefile,v 1.36 2005/01/13 18:23:21 tgl Exp $
+# $PostgreSQL: pgsql/src/Makefile,v 1.37 2005/11/28 12:03:56 alvherre Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -24,6 +24,7 @@ all install installdirs uninstall dep depend distprep:
    $(MAKE) -C pl $@
    $(MAKE) -C makefiles $@
    $(MAKE) -C utils $@
+   $(MAKE) -C test/regress $@
 
 install: install-local
 
index a3842542cdc5fd4e9afb1f73edd87d97c114c3ac..3388389147136bcfd2123ca38d9203e6e6097d7f 100644 (file)
@@ -6,7 +6,7 @@
 # Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
 # Portions Copyright (c) 1994, Regents of the University of California
 #
-# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.53 2005/11/01 15:09:11 adunstan Exp $
+# $PostgreSQL: pgsql/src/test/regress/GNUmakefile,v 1.54 2005/11/28 12:03:56 alvherre Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -55,6 +55,12 @@ pg_regress: pg_regress.sh GNUmakefile $(top_builddir)/src/Makefile.global
      $< >$@
    chmod a+x $@
 
+install: pg_regress
+   $(INSTALL_SCRIPT) pg_regress $(DESTDIR)$(pgxsdir)/$(subdir)/pg_regress
+
+uninstall:
+   rm -f $(DESTDIR)$(pgxsdir)/$(subdir)/pg_regress
+
 
 # Build dynamically-loaded object file for CREATE FUNCTION ... LANGUAGE 'C'.