#
# Copyright (c) 1994, Regents of the University of California
#
-# $PostgreSQL: pgsql/src/pl/Makefile,v 1.22 2003/11/29 19:52:12 pgsql Exp $
+# src/pl/Makefile
#
#-------------------------------------------------------------------------
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
-DIRS := plpgsql
-
-ifeq ($(with_tcl), yes)
-DIRS += tcl
-endif
+SUBDIRS = plpgsql
ifeq ($(with_perl), yes)
-DIRS += plperl
+SUBDIRS += plperl
+else
+ALWAYS_SUBDIRS += plperl
endif
ifeq ($(with_python), yes)
-DIRS += plpython
+SUBDIRS += plpython
+else
+ALWAYS_SUBDIRS += plpython
endif
-all install installdirs uninstall depend distprep:
- @for dir in $(DIRS); do $(MAKE) -C $$dir $@ || exit; done
+ifeq ($(with_tcl), yes)
+SUBDIRS += tcl
+else
+ALWAYS_SUBDIRS += tcl
+endif
-clean distclean maintainer-clean:
- @for dir in $(DIRS); do $(MAKE) -C $$dir $@; done
+$(recurse)
+$(recurse_always)