2000-06-27 02:32:06 +02:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Makefile for src/pl (procedural languages)
|
|
|
|
#
|
|
|
|
# Copyright (c) 1994, Regents of the University of California
|
|
|
|
#
|
2007-02-09 16:56:00 +01:00
|
|
|
# $PostgreSQL: pgsql/src/pl/Makefile,v 1.25 2007/02/09 15:55:59 petere Exp $
|
2000-06-27 02:32:06 +02:00
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
subdir = src/pl
|
|
|
|
top_builddir = ../..
|
2000-08-31 18:12:35 +02:00
|
|
|
include $(top_builddir)/src/Makefile.global
|
2000-06-27 02:32:06 +02:00
|
|
|
|
2007-02-09 16:56:00 +01:00
|
|
|
DIRS = plpgsql
|
2000-06-27 02:32:06 +02:00
|
|
|
|
2000-10-24 21:31:13 +02:00
|
|
|
ifeq ($(with_perl), yes)
|
2000-10-24 19:03:46 +02:00
|
|
|
DIRS += plperl
|
2000-10-24 21:31:13 +02:00
|
|
|
endif
|
2000-06-27 02:32:06 +02:00
|
|
|
|
2001-08-27 02:29:49 +02:00
|
|
|
ifeq ($(with_python), yes)
|
|
|
|
DIRS += plpython
|
|
|
|
endif
|
2001-05-09 21:54:38 +02:00
|
|
|
|
2005-05-14 19:55:22 +02:00
|
|
|
ifeq ($(with_tcl), yes)
|
|
|
|
DIRS += tcl
|
|
|
|
endif
|
|
|
|
|
2007-01-20 18:16:17 +01:00
|
|
|
all install installdirs uninstall distprep:
|
2005-05-14 19:55:22 +02:00
|
|
|
@for dir in $(DIRS); do $(MAKE) -C $$dir $@ || exit 1; done
|
2000-06-27 02:32:06 +02:00
|
|
|
|
2000-07-01 17:02:31 +02:00
|
|
|
clean distclean maintainer-clean:
|
2000-06-27 02:32:06 +02:00
|
|
|
@for dir in $(DIRS); do $(MAKE) -C $$dir $@; done
|
2005-05-14 19:55:22 +02:00
|
|
|
|
|
|
|
# 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.
|
|
|
|
check installcheck:
|
|
|
|
@CHECKERR=0; for dir in $(DIRS); do \
|
|
|
|
sleep 1; \
|
|
|
|
$(MAKE) -C $$dir $@ || CHECKERR=$$?; \
|
|
|
|
done; \
|
|
|
|
exit $$CHECKERR
|