src/GNUmakefile
src/Makefile.global
src/backend/port/Makefile
- src/pl/tcl/modules/pltcl_listmod
- src/pl/tcl/modules/pltcl_loadmod
- src/pl/tcl/modules/pltcl_delmod
],
[
# Update timestamp for config.h (see Makefile.global)
# -*-makefile-*-
-# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.125 2001/05/09 19:57:33 momjian Exp $
+# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.126 2001/05/09 20:19:30 momjian Exp $
#------------------------------------------------------------------------------
# All PostgreSQL makefiles include this file and use the variables it sets,
TCL_CONFIG_SH = @TCL_CONFIG_SH@
TK_CONFIG_SH = @TK_CONFIG_SH@
+TCLSH = @TCLSH@
have_docbook = @have_docbook@
DOCBOOKSTYLE = @DOCBOOKSTYLE@
#
# Makefile for the pltcl shared object
#
-# $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.28 2001/05/09 20:08:08 momjian Exp $
+# $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.29 2001/05/09 20:19:30 momjian Exp $
#
#-------------------------------------------------------------------------
ifeq ($(TCL_SHARED_BUILD), 1)
-all: $(INFILES)
+all: $(INFILES) tcl_unknown
+
+tcl_unknown: $(top_builddir)/src/Makefile.global \
+ modules/pltcl_loadmod.in \
+ modules/pltcl_delmod.in \
+ modules/pltcl_listmod.in
+ifeq ($(enable_pltcl_unknown), yes)
+ sed -e 's/@TCLSH@/$(TCLSH)/g' modules/pltcl_loadmod.in > modules/pltcl_loadmod
+ sed -e 's/@TCLSH@/$(TCLSH)/g' modules/pltcl_delmod.in > modules/pltcl_delmod
+ sed -e 's/@TCLSH@/$(TCLSH)/g' modules/pltcl_listmod.in > modules/pltcl_listmod
+ chmod a+x modules/pltcl_loadmod modules/pltcl_delmod modules/pltcl_listmod
+endif
pltcl$(DLSUFFIX): pltcl.o