]> granicus.if.org Git - postgresql/blobdiff - src/pl/Makefile
Translation updates
[postgresql] / src / pl / Makefile
index 1ddf4c4967f8115060653c9268c0e16ac618fd33..c4a0d1cd07abdef10d3dec960415bbfc49790e8f 100644 (file)
@@ -1,30 +1,36 @@
 #-------------------------------------------------------------------------
 #
-# Makefile
-#    Makefile for src/pl (procedural languages)
+# Makefile for src/pl (procedural languages)
 #
 # Copyright (c) 1994, Regents of the University of California
 #
-#
-# IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/pl/Makefile,v 1.7 2000/04/11 17:42:28 momjian Exp $
+# src/pl/Makefile
 #
 #-------------------------------------------------------------------------
 
-SRCDIR= ..
-include $(SRCDIR)/Makefile.global
+subdir = src/pl
+top_builddir = ../..
+include $(top_builddir)/src/Makefile.global
+
+SUBDIRS = plpgsql
 
+ifeq ($(with_perl), yes)
+SUBDIRS += plperl
+else
+ALWAYS_SUBDIRS += plperl
+endif
+
+ifeq ($(with_python), yes)
+SUBDIRS += plpython
+else
+ALWAYS_SUBDIRS += plpython
+endif
 
-.DEFAULT all install clean dep depend distclean:
-       $(MAKE) -C plpgsql $@
-ifeq ($(USE_TCL), true)
-       $(MAKE) -C tcl $@
+ifeq ($(with_tcl), yes)
+SUBDIRS += tcl
+else
+ALWAYS_SUBDIRS += tcl
 endif
-# does't work bjm 2000-04-11
-#ifeq ($(USE_PERL), true)
-#      -$(MAKE) $(MFLAGS) plperl/Makefile
-#      -$(MAKE) $(MFLAGS) -C plperl $@
-#endif
 
-plperl/Makefile: plperl/Makefile.PL
-       cd plperl && $(PERL) Makefile.PL POLLUTE=1
+$(recurse)
+$(recurse_always)