22#
33# Makefile for the pltcl shared object
44#
5- # $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.32 2001/05/09 21:42:29 momjian Exp $
5+ # $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.33 2001/05/11 23:38:06 petere Exp $
66#
77# -------------------------------------------------------------------------
88
@@ -66,17 +66,6 @@ override CPPFLAGS += $(TCL_DEFS)
6666override CFLAGS = $(TCL_CFLAGS_OPTIMIZE ) $(TCL_SHLIB_CFLAGS )
6767
6868
69- # Uncomment the following to enable the unknown command lookup on the
70- # first of all calls to the call handler. See the doc in the modules
71- # directory about details.
72-
73- ifeq ($(enable_pltcl_unknown ) , yes)
74- override CPPFLAGS+ = -DPLTCL_UNKNOWN_SUPPORT
75- TCL_UNKNOWN_MODS = modules/pltcl_loadmod \
76- modules/pltcl_delmod \
77- modules/pltcl_listmod
78- endif
79-
8069#
8170# DLOBJS is the dynamically-loaded object file.
8271#
@@ -96,57 +85,45 @@ endif
9685
9786ifeq ($(TCL_SHARED_BUILD ) , 1)
9887
99- all : $(INFILES ) $(TCL_UNKNOWN_MODS )
100-
101- modules/pltcl_loadmod : modules/pltcl_loadmod.in \
102- $(top_builddir ) /src/Makefile.global
103- sed -e ' s,@TCLSH@,$(TCLSH),g' \
104- $< > $@
105- chmod a+x $@
106-
107- modules/pltcl_delmod : modules/pltcl_delmod.in \
108- $(top_builddir ) /src/Makefile.global
109- sed -e ' s,@TCLSH@,$(TCLSH),g' \
110- $< > $@
111- chmod a+x $@
112-
113- modules/pltcl_listmod : modules/pltcl_listmod.in \
114- $(top_builddir ) /src/Makefile.global
115- sed -e ' s,@TCLSH@,$(TCLSH),g' \
116- $< > $@
117- chmod a+x $@
88+ all : $(INFILES )
89+ ifeq ($(enable_pltcl_unknown ) , yes)
90+ $(MAKE) -C modules $@
91+ endif
11892
11993pltcl$(DLSUFFIX ) : pltcl.o
12094
12195install : all installdirs
12296 $(INSTALL_SHLIB ) $(DLOBJS ) $(DESTDIR )$(libdir ) /$(DLOBJS )
12397ifeq ($(enable_pltcl_unknown ) , yes)
124- $(INSTALL_SCRIPT) modules/pltcl_loadmod \
125- $(DESTDIR)$(bindir)/pltcl_loadmod
126- $(INSTALL_SCRIPT) modules/pltcl_delmod \
127- $(DESTDIR)$(bindir)/pltcl_delmod
128- $(INSTALL_SCRIPT) modules/pltcl_listmod \
129- $(DESTDIR)$(bindir)/pltcl_listmod
130- $(INSTALL_DATA) modules/unknown.pltcl \
131- $(DESTDIR)$(datadir)/unknown.pltcl
98+ $(MAKE) -C modules $@
13299endif
133100
134101installdirs :
135102 $(mkinstalldirs ) $(DESTDIR )$(libdir )
103+ ifeq ($(enable_pltcl_unknown ) , yes)
104+ $(MAKE) -C modules $@
105+ endif
136106
137107uninstall :
138108 rm -f $(DESTDIR )$(libdir ) /$(DLOBJS )
109+ ifeq ($(enable_pltcl_unknown ) , yes)
110+ $(MAKE) -C modules $@
111+ endif
139112
140- else
113+ else # TCL_SHARED_BUILD = 0
141114
142115all install :
143116 @echo " *****" ; \
144117 echo " * Cannot build pltcl because Tcl is not a shared library; skipping it." ; \
145118 echo " *****"
146- endif
119+
120+ endif # TCL_SHARED_BUILD = 0
147121
148122Makefile.tcldefs : mkMakefile.tcldefs.sh
149123 $(SHELL ) $< ' $(TCL_CONFIG_SH)' ' $@'
150124
151125clean distclean maintainer-clean :
152- rm -f $(INFILES ) pltcl.o Makefile.tcldefs modules/pltcl_listmod modules/pltcl_loadmod modules/pltcl_delmod
126+ rm -f $(INFILES ) pltcl.o Makefile.tcldefs
127+ ifeq ($(enable_pltcl_unknown ) , yes)
128+ $(MAKE) -C modules $@
129+ endif
0 commit comments