]> granicus.if.org Git - postgresql/blobdiff - src/pl/Makefile
Some more FLEXIBLE_ARRAY_MEMBER fixes.
[postgresql] / src / pl / Makefile
index e64bf02dab28de60b6433d09211b79c5a7c6942f..c4a0d1cd07abdef10d3dec960415bbfc49790e8f 100644 (file)
@@ -4,27 +4,33 @@
 #
 # Copyright (c) 1994, Regents of the University of California
 #
-# $Header: /cvsroot/pgsql/src/pl/Makefile,v 1.10 2000/07/01 15:02:27 petere Exp $
+# src/pl/Makefile
 #
 #-------------------------------------------------------------------------
 
 subdir = src/pl
 top_builddir = ../..
-include ../Makefile.global
+include $(top_builddir)/src/Makefile.global
 
-DIRS := plpgsql
+SUBDIRS = plpgsql
 
-ifeq ($(USE_TCL), true)
-DIRS += tcl
+ifeq ($(with_perl), yes)
+SUBDIRS += plperl
+else
+ALWAYS_SUBDIRS += plperl
 endif
 
-# Disabled because it doesn't work
-#ifeq ($(with_perl), yes)
-#DIRS += plperl
-#endif
+ifeq ($(with_python), yes)
+SUBDIRS += plpython
+else
+ALWAYS_SUBDIRS += plpython
+endif
 
-all install installdirs uninstall depend:
-       @for dir in $(DIRS); do $(MAKE) -C $$dir $@ || exit 1; 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)