head	1.28;
access;
symbols
	REL9_0_0:1.28
	REL9_1_ALPHA1:1.28
	REL9_0_RC1:1.28
	REL9_0_BETA4:1.28
	REL9_0_STABLE:1.28.0.12
	REL9_0_BETA3:1.28
	REL9_0_BETA2:1.28
	REL7_4_29:1.21
	REL8_0_25:1.22
	REL8_1_21:1.23
	REL8_2_17:1.23
	REL8_3_11:1.26
	REL8_4_4:1.27
	REL9_0_BETA1:1.28
	REL9_0_ALPHA5_BRANCH:1.28.0.10
	REL9_0_ALPHA5:1.28
	REL7_4_28:1.21
	REL8_0_24:1.22
	REL8_1_20:1.23
	REL8_2_16:1.23
	REL8_3_10:1.26
	REL8_4_3:1.27
	REL9_0_ALPHA4:1.28
	REL9_0_ALPHA4_BRANCH:1.28.0.8
	REL8_5_ALPHA3:1.28
	REL8_5_ALPHA3_BRANCH:1.28.0.6
	REL7_4_27:1.21
	REL8_0_23:1.22
	REL8_1_19:1.23
	REL8_2_15:1.23
	REL8_3_9:1.26
	REL8_4_2:1.27
	REL8_5_ALPHA2:1.28
	REL8_5_ALPHA2_BRANCH:1.28.0.4
	REL7_4_26:1.21
	REL8_0_22:1.22
	REL8_1_18:1.23
	REL8_2_14:1.23
	REL8_3_8:1.26
	REL8_4_1:1.27
	REL8_5_ALPHA1:1.28
	REL8_5_ALPHA1_BRANCH:1.28.0.2
	REL8_4_STABLE:1.27.0.2
	REL8_4_0:1.27
	REL8_4_RC2:1.27
	REL8_4_RC1:1.27
	REL8_4_BETA2:1.27
	REL8_4_BETA1:1.27
	REL7_4_25:1.21
	REL8_0_21:1.22
	REL8_1_17:1.23
	REL8_2_13:1.23
	REL8_3_7:1.26
	REL7_4_24:1.21
	REL8_0_20:1.22
	REL8_1_16:1.23
	REL8_2_12:1.23
	REL8_3_6:1.26
	REL7_4_23:1.21
	REL8_0_19:1.22
	REL8_1_15:1.23
	REL8_2_11:1.23
	REL8_3_5:1.26
	REL7_4_22:1.21
	REL8_0_18:1.22
	REL8_1_14:1.23
	REL8_2_10:1.23
	REL8_3_4:1.26
	REL7_4_21:1.21
	REL8_0_17:1.22
	REL8_1_13:1.23
	REL8_2_9:1.23
	REL8_3_3:1.26
	REL7_4_20:1.21
	REL8_0_16:1.22
	REL8_1_12:1.23
	REL8_2_8:1.23
	REL8_3_2:1.26
	REL8_2_7:1.23
	REL8_3_1:1.26
	REL8_3_STABLE:1.26.0.2
	REL8_3_0:1.26
	REL8_3_RC2:1.26
	REL7_3_21:1.21
	REL7_4_19:1.21
	REL8_0_15:1.22
	REL8_1_11:1.23
	REL8_2_6:1.23
	REL8_3_RC1:1.26
	REL8_3_BETA4:1.26
	REL8_3_BETA3:1.26
	REL8_3_BETA2:1.26
	REL8_3_BETA1:1.26
	REL7_3_20:1.21
	REL7_4_18:1.21
	REL8_0_14:1.22
	REL8_1_10:1.23
	REL8_2_5:1.23
	REL7_3_19:1.21
	REL7_4_17:1.21
	REL8_0_13:1.22
	REL8_1_9:1.23
	REL8_2_4:1.23
	REL8_0_12:1.22
	REL8_1_8:1.23
	REL8_2_3:1.23
	REL7_3_18:1.21
	REL7_4_16:1.21
	REL8_0_11:1.22
	REL8_1_7:1.23
	REL8_2_2:1.23
	REL8_0_10:1.22
	REL8_1_6:1.23
	REL8_2_1:1.23
	REL7_4_15:1.21
	REL7_3_17:1.21
	REL8_2_STABLE:1.23.0.4
	REL8_2_0:1.23
	REL8_2_RC1:1.23
	REL8_2_BETA3:1.23
	REL8_2_BETA2:1.23
	REL8_1_5:1.23
	REL8_0_9:1.22
	REL7_4_14:1.21
	REL7_3_16:1.21
	REL8_2_BETA1:1.23
	REL7_3_15:1.21
	REL7_4_13:1.21
	REL8_0_8:1.22
	REL8_1_4:1.23
	REL7_3_14:1.21
	REL7_4_12:1.21
	REL8_0_7:1.22
	REL8_1_3:1.23
	REL7_3_13:1.21
	REL7_4_11:1.21
	REL8_0_6:1.22
	REL8_1_2:1.23
	REL7_3_12:1.21
	REL7_4_10:1.21
	REL8_0_5:1.22
	REL8_1_1:1.23
	REL8_1_STABLE:1.23.0.2
	REL8_1_0:1.23
	REL8_1_0RC1:1.23
	REL8_1_0BETA4:1.23
	REL8_1_0BETA3:1.23
	REL7_3_11:1.21
	REL7_4_9:1.21
	REL8_0_4:1.22
	REL8_1_0BETA2:1.23
	REL8_1_0BETA1:1.23
	REL7_2_8:1.21
	REL7_3_10:1.21
	REL7_4_8:1.21
	REL8_0_3:1.22
	REL8_0_2:1.22
	REL7_2_7:1.21
	REL7_3_9:1.21
	REL7_4_7:1.21
	REL8_0_1:1.22
	REL8_0_STABLE:1.22.0.4
	REL8_0_0:1.22.0.2
	REL8_0_0RC5:1.22
	REL8_0_0RC4:1.22
	REL8_0_0RC3:1.22
	REL8_0_0RC2:1.22
	REL8_0_0RC1:1.22
	REL8_0_0BETA5:1.22
	REL8_0_0BETA4:1.22
	REL7_4_6:1.21
	REL7_3_8:1.21
	REL7_2_6:1.21
	REL8_0_0BETA3:1.22
	REL8_0_0BETA2:1.22
	REL7_2_5:1.21
	REL7_4_5:1.21
	REL7_3_7:1.21
	REL7_4_4:1.21
	REL8_0_0BETA1:1.22
	REL7_4_3:1.21
	REL7_4_2:1.21
	REL7_3_6:1.21
	REL7_4_1:1.21
	REL7_3_5:1.21
	REL7_4:1.21
	REL7_4_RC2:1.21
	REL7_4_STABLE:1.21.0.8
	REL7_4_RC1:1.21
	REL7_4_BETA5:1.21
	REL7_4_BETA4:1.21
	REL7_4_BETA3:1.21
	REL7_4_BETA2:1.21
	WIN32_DEV:1.21.0.6
	REL7_4_BETA1:1.21
	REL7_3_4:1.21
	REL7_3_2:1.21
	REL7_2_4:1.21
	REL7_3_STABLE:1.21.0.4
	REL7_2_3:1.21
	REL7_2_STABLE:1.21.0.2
	REL7_2:1.21
	REL7_2_RC2:1.21
	REL7_2_RC1:1.21
	REL7_2_BETA5:1.21
	REL7_2_BETA4:1.21
	REL7_2_BETA3:1.21
	REL7_2_BETA2:1.21
	REL7_2_BETA1:1.21
	REL7_1_2:1.17
	REL7_1_STABLE:1.17.0.2
	REL7_1_BETA:1.17
	REL7_1_BETA3:1.17
	REL7_1_BETA2:1.17
	REL7_1:1.17
	REL7_0_PATCHES:1.7.0.2
	REL7_0:1.7
	REL6_5_PATCHES:1.1.0.4
	REL6_5:1.1
	REL6_4:1.1.0.2;
locks; strict;
comment	@# @;


1.28
date	2009.08.07.20.50.22;	author petere;	state Exp;
branches;
next	1.27;

1.27
date	2008.03.18.16.24.50;	author petere;	state Exp;
branches;
next	1.26;

1.26
date	2007.06.01.19.38.07;	author tgl;	state Exp;
branches;
next	1.25;

1.25
date	2007.02.09.15.55.59;	author petere;	state Exp;
branches;
next	1.24;

1.24
date	2007.01.20.17.16.17;	author petere;	state Exp;
branches;
next	1.23;

1.23
date	2005.05.14.17.55.20;	author tgl;	state Exp;
branches;
next	1.22;

1.22
date	2003.11.29.19.52.12;	author pgsql;	state Exp;
branches;
next	1.21;

1.21
date	2001.08.27.00.29.49;	author petere;	state Exp;
branches;
next	1.20;

1.20
date	2001.05.12.01.30.30;	author petere;	state Exp;
branches;
next	1.19;

1.19
date	2001.05.10.03.00.11;	author momjian;	state Exp;
branches;
next	1.18;

1.18
date	2001.05.09.19.54.38;	author momjian;	state Exp;
branches;
next	1.17;

1.17
date	2000.10.24.19.31.13;	author tgl;	state Exp;
branches;
next	1.16;

1.16
date	2000.10.24.17.03.46;	author tgl;	state Exp;
branches;
next	1.15;

1.15
date	2000.09.25.22.23.01;	author petere;	state Exp;
branches;
next	1.14;

1.14
date	2000.09.25.12.43.24;	author momjian;	state Exp;
branches;
next	1.13;

1.13
date	2000.09.12.04.28.30;	author momjian;	state Exp;
branches;
next	1.12;

1.12
date	2000.08.31.16.12.09;	author petere;	state Exp;
branches;
next	1.11;

1.11
date	2000.07.19.16.30.16;	author petere;	state Exp;
branches;
next	1.10;

1.10
date	2000.07.01.15.02.27;	author petere;	state Exp;
branches;
next	1.9;

1.9
date	2000.06.27.00.31.48;	author petere;	state Exp;
branches;
next	1.8;

1.8
date	2000.06.10.18.02.09;	author petere;	state dead;
branches;
next	1.7;

1.7
date	2000.04.11.17.42.28;	author momjian;	state Exp;
branches;
next	1.6;

1.6
date	2000.03.27.22.39.13;	author momjian;	state Exp;
branches;
next	1.5;

1.5
date	2000.03.25.19.26.49;	author tgl;	state Exp;
branches;
next	1.4;

1.4
date	2000.03.25.14.25.31;	author momjian;	state Exp;
branches;
next	1.3;

1.3
date	2000.01.20.23.00.39;	author momjian;	state Exp;
branches;
next	1.2;

1.2
date	2000.01.20.22.31.22;	author momjian;	state Exp;
branches;
next	1.1;

1.1
date	98.10.01.03.38.30;	author scrappy;	state Exp;
branches;
next	;


desc
@@


1.28
log
@Expand test coverage support to entire tree

Test coverage support now covers the entire source tree, including
contrib, instead of just src/backend.  In a related but independent
development, the commands make coverage and make coverage-html can be run
in any directory.

This turned out to be much easier than feared.  Besides a few ad hoc fixes
to pass the make target down the tree, change all affected makefiles to
list their directories in the SUBDIRS variable, changed from variants like
DIRS and WANTED_DIRS.  MSVC build fix was attempted as well.
@
text
@#-------------------------------------------------------------------------
#
# Makefile for src/pl (procedural languages)
#
# Copyright (c) 1994, Regents of the University of California
#
# $PostgreSQL: pgsql/src/pl/Makefile,v 1.27 2008/03/18 16:24:50 petere Exp $
#
#-------------------------------------------------------------------------

subdir = src/pl
top_builddir = ../..
include $(top_builddir)/src/Makefile.global

SUBDIRS = plpgsql

ifeq ($(with_perl), yes)
SUBDIRS += plperl
endif

ifeq ($(with_python), yes)
SUBDIRS += plpython
endif

ifeq ($(with_tcl), yes)
SUBDIRS += tcl
endif

all install installdirs uninstall distprep clean distclean maintainer-clean:
	@@for dir in $(SUBDIRS); do $(MAKE) -C $$dir $@@ || exit; done

# We'd like check operations to run all the subtests before failing.
check installcheck:
	@@CHECKERR=0; for dir in $(SUBDIRS); do \
		$(MAKE) -C $$dir $@@ || CHECKERR=$$?; \
	done; \
	exit $$CHECKERR
@


1.27
log
@Catch all errors in for and while loops in makefiles.  Don't ignore any
errors in any commands, including in various clean targets that have so far
been handled inconsistently.  make -i is available to ignore all errors in
a consistent and official way.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/pl/Makefile,v 1.26 2007/06/01 19:38:07 tgl Exp $
d15 1
a15 1
DIRS = plpgsql
d18 1
a18 1
DIRS += plperl
d22 1
a22 1
DIRS += plpython
d26 1
a26 1
DIRS += tcl
d30 1
a30 1
	@@for dir in $(DIRS); do $(MAKE) -C $$dir $@@ || exit; done
d34 1
a34 1
	@@CHECKERR=0; for dir in $(DIRS); do \
@


1.26
log
@Make CREATE/DROP/RENAME DATABASE wait a little bit to see if other backends
will exit before failing because of conflicting DB usage.  Per discussion,
this seems a good idea to help mask the fact that backend exit takes nonzero
time.  Remove a couple of thereby-obsoleted sleeps in contrib and PL
regression test sequences.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/pl/Makefile,v 1.25 2007/02/09 15:55:59 petere Exp $
d29 2
a30 5
all install installdirs uninstall distprep:
	@@for dir in $(DIRS); do $(MAKE) -C $$dir $@@ || exit 1; done

clean distclean maintainer-clean:
	@@for dir in $(DIRS); do $(MAKE) -C $$dir $@@; done
@


1.25
log
@Replace useless uses of := by = in makefiles.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/pl/Makefile,v 1.24 2007/01/20 17:16:17 petere Exp $
d35 1
a35 3
# We'd like check operations to run all the subtests before failing;
# also insert a sleep to ensure the previous test backend exited before
# we try to drop the regression database.
a37 1
		sleep 1; \
@


1.24
log
@Remove remains of old depend target.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/pl/Makefile,v 1.23 2005/05/14 17:55:20 tgl Exp $
d15 1
a15 1
DIRS := plpgsql
@


1.23
log
@Convert the existing regression test scripts for the various optional
PLs to use the standard pg_regress infrastructure.  No changes in the
tests themselves.  Andrew Dunstan
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/src/pl/Makefile,v 1.22 2003/11/29 19:52:12 pgsql Exp $
d29 1
a29 1
all install installdirs uninstall depend distprep:
@


1.22
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d7 1
a7 1
# $PostgreSQL: /cvsroot/pgsql-server/src/pl/Makefile,v 1.21 2001/08/27 00:29:49 petere Exp $
a16 4
ifeq ($(with_tcl), yes)
DIRS += tcl
endif

d25 4
d30 1
a30 1
	@@for dir in $(DIRS); do $(MAKE) -C $$dir $@@ || exit; done
d34 10
@


1.21
log
@Turn on plpython build by default if we have something that looks like a
shared library, or we can do without one.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/pl/Makefile,v 1.20 2001/05/12 01:30:30 petere Exp $
@


1.20
log
@PL/Python integration:  support in create/droplang, add CVS keywords,
remove useless files, beat some sense into Makefile.  For me it builds
and sort of runs, so it's a start.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/pl/Makefile,v 1.19 2001/05/10 03:00:11 momjian Exp $
d25 3
a27 4
# Doesn't build portably yet.
#ifeq ($(with_python), yes)
#DIRS += plpython
#endif
@


1.19
log
@Move disabled message up to a higher makefile.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/pl/Makefile,v 1.18 2001/05/09 19:54:38 momjian Exp $
d25 1
a30 1
	@@echo "PL/Python disabled until merged into our Makefile system, bjm 2001-05-09"
@


1.18
log
@Add plpython code.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/pl/Makefile,v 1.17 2000/10/24 19:31:13 tgl Exp $
d25 3
a27 3
ifeq ($(with_python), yes)
DIRS += plpython
endif
d30 1
@


1.17
log
@Wups, messed up the comment markers on that last change.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/pl/Makefile,v 1.16 2000/10/24 17:03:46 tgl Exp $
d23 4
@


1.16
log
@Enable plperl to be built when --with-perl is selected.  Dunno whether
latest fixes make it safe or not, but we won't find out if no one builds
it, eh?
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/pl/Makefile,v 1.15 2000/09/25 22:23:01 petere Exp $
d21 1
a21 1
#ifeq ($(with_perl), yes)
d23 1
a23 1
#endif
@


1.15
log
@Revise Tcl/Tk configuration.  Make missing Tcl after --with-tcl an error,
add --without-tk option to disable Tk.  We don't need the AC_PATH_XTRA
test because tkConfig.sh already contains all the information about how to
compile and link with X.  Also make sure that libpq is up to date for
libpgtcl.  Remove executable bits from pgaccess.sh, but add it to pgaccess.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/pl/Makefile,v 1.14 2000/09/25 12:43:24 momjian Exp $
d22 1
a22 1
#DIRS += plperl
@


1.14
log
@disable plperl again.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/pl/Makefile,v 1.13 2000/09/12 04:28:30 momjian Exp $
d17 1
a17 1
ifeq ($(USE_TCL), true)
@


1.13
log
@This patch, when applied in src/pl will unbreak plperl in
7.0.2 release. Sorry, if that's fixed ages ago - I don't track
development versions of PostgreSQL.

Patch is just a little bit tested (some valid functions created and
successfully run as well as some erroneous ones created and emitted proper
error messages when used).

My platform is FreeBSD 5.0-CURRENT (with perl 5.6.0 provided in the
base system).

Alex Kapranoff
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/pl/Makefile,v 1.12 2000/08/31 16:12:09 petere Exp $
d21 3
a23 3
ifeq ($(with_perl), yes)
DIRS += plperl
endif
@


1.12
log
@Fix relative path references so that make knowns which dependencies refer
to one another. Sort out builddir vs srcdir variable namings. Remove some
now obsoleted make variables.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/pl/Makefile,v 1.11 2000/07/19 16:30:16 petere Exp $
d21 3
a23 4
# Disabled because it doesn't work
#ifeq ($(with_perl), yes)
#DIRS += plperl
#endif
@


1.11
log
@Add distprep target to take some of the job of the release_prep script.
The latter updated accordingly. Also add `dist' and `distcheck' targets
to play with, but caveat packager.

Updated backend/bootstrap and backend/parser makefile to make them
marginally builddir aware and fix the usual set of things.

Add rule to automatically remake config.h dependent on config.h.in and
config.status. (Adopted from Autoconf manual and about every other
package.) On a good day we should now have a complete and accurate set
of dependencies throughout everything.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/pl/Makefile,v 1.10 2000/07/01 15:02:27 petere Exp $
d13 1
a13 1
include ../Makefile.global
@


1.10
log
@A little bit of clean-up/bug fix in Tcl build. Handle gracefully cases
where someone wants to build these but hasn't configured for Tcl.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/pl/Makefile,v 1.9 2000/06/27 00:31:48 petere Exp $
d26 2
a27 2
all install installdirs uninstall depend:
	@@for dir in $(DIRS); do $(MAKE) -C $$dir $@@ || exit 1; done
@


1.9
log
@Makefile cleanup for bin and pl subtrees. They should now support
all the standard semantics. Also get rid of Makefile.in's on the
way and instead declare all variables in Makefile.global.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/pl/Makefile.in,v 1.2 2000/06/20 16:40:04 petere Exp $
d23 1
a23 1
#	$(MAKE) -C plperl $@@
a25 3
ALLDIRS := plpgsql tcl plperl


d29 1
a29 1
clean:
a30 3

distclean maintainer-clean:
	@@for dir in $(ALLDIRS); do $(MAKE) -C $$dir $@@; done
@


1.8
log
@Moved the intricacies of the perl interface build into its own makefile
that now functions as a wrapper around the MakeMaker stuff. It might
even behave sensically when we have separate build dirs. Same for plperl,
which of course still doesn't work very well. Made sure that plperl
respects the choice of --libdir.

Added --with-python to automatically build and install the Python interface.
Works similarly to the Perl5 stuff.

Moved the burden of the distclean targets lower down into the source tree.
Eventually, each make file should have its own.

Added automatic remaking of makefiles and configure. Currently only for the
top-level because of a bug(?) in Autoconf. Use GNU `missing' to work around
missing autoconf and aclocal. Start factoring out macros into their own
config/*.m4 files to increase readability and organization.
@
text
@d3 1
a3 2
# Makefile
#    Makefile for src/pl (procedural languages)
d7 1
a7 3
#
# IDENTIFICATION
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/pl/Makefile,v 1.7 2000/04/11 17:42:28 momjian Exp $
d11 3
a13 2
SRCDIR= ..
include $(SRCDIR)/Makefile.global
d15 1
a16 2
.DEFAULT all install clean dep depend distclean:
	$(MAKE) -C plpgsql $@@
d18 1
a18 1
	$(MAKE) -C tcl $@@
d20 4
a23 4
# does't work bjm 2000-04-11
#ifeq ($(USE_PERL), true)
#	-$(MAKE) $(MFLAGS) plperl/Makefile
#	-$(MAKE) $(MFLAGS) -C plperl $@@
d26 11
a36 2
plperl/Makefile: plperl/Makefile.PL
	cd plperl && $(PERL) Makefile.PL POLLUTE=1
@


1.7
log
@disable plperl
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/pl/Makefile,v 1.6 2000/03/27 22:39:13 momjian Exp $
@


1.6
log
@Allow compile to finish even if plperl fails, which it does now.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/pl/Makefile,v 1.5 2000/03/25 19:26:49 tgl Exp $
d23 5
a27 4
ifeq ($(USE_PERL), true)
	-$(MAKE) $(MFLAGS) plperl/Makefile
	-$(MAKE) $(MFLAGS) -C plperl $@@
endif
@


1.5
log
@Remove bogus complexity from build/install of plperl.  This stuff was
apparently copied from the makefile for the perl5 interface module,
which needs it for reasons explained in src/interfaces/Makefile.
But none of those reasons apply to plperl.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/pl/Makefile,v 1.4 2000/03/25 14:25:31 momjian Exp $
d24 2
a25 2
	$(MAKE) $(MFLAGS) plperl/Makefile
	$(MAKE) $(MFLAGS) -C plperl $@@
@


1.4
log
@Add POLLUTE=1 to perl Makefile.PL creations.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/pl/Makefile,v 1.3 2000/01/20 23:00:39 momjian Exp $
d24 2
a25 6
	-@@if [ "$@@" = "install" ]; then \
		$(MAKE) $(MFLAGS) install-plperl; \
	else \
		$(MAKE) $(MFLAGS) plperl/Makefile; \
		$(MAKE) $(MFLAGS) -C plperl $@@; \
	fi
a29 16

install-plperl: plperl/Makefile
	$(MAKE) -C plperl clean
	cd plperl && POSTGRES_HOME="$(POSTGRESDIR)" $(PERL) Makefile.PL POLLUTE=1
	$(MAKE) -C plperl all
	-@@if [ -w `sed -n -e 's/^ *INSTALLSITELIB *= *//p' plperl/Makefile` ]; then \
		$(MAKE) $(MFLAGS) -C plperl install; \
		rm -f plperl/Makefile; \
	else \
		echo "Skipping install of Perl module for lack of permissions."; \
		echo "To install it, cd into interfaces/plperl, su to become the"; \
		echo "appropriate user, and do '$(MAKE) install'."; \
	fi

.PHONY: install-plperl

@


1.3
log
@plperl Makefile cleanup.  Doesn't work on BSDI yet.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/pl/Makefile,v 1.2 2000/01/20 22:31:22 momjian Exp $
d33 1
a33 1
	cd plperl && $(PERL) Makefile.PL
d37 1
a37 1
	cd plperl && POSTGRES_HOME="$(POSTGRESDIR)" $(PERL) Makefile.PL
@


1.2
log
@Update plperl makefile.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/pl/Makefile,v 1.1 1998/10/01 03:38:30 scrappy Exp $
d24 1
a24 1
	if [ "$@@" = "install" ]; then \
@


1.1
log
@
failed to add some of Jan's files :(
@
text
@d10 1
a10 1
#    $Header: $
d23 26
@
