diff options
author | Bruce Momjian | 2001-05-09 21:35:11 +0000 |
---|---|---|
committer | Bruce Momjian | 2001-05-09 21:35:11 +0000 |
commit | a1a12b8a0c5976efda424e09b1962efe02da917a (patch) | |
tree | bbe358a2557f6d4641c23ce2a05e8dd77b16b843 | |
parent | bea7a8857655e5680a4b9aad7b66f07bd9c0264a (diff) |
I think I got the pltcl Makefile unknown rules working properly.
-rw-r--r-- | src/pl/tcl/Makefile | 38 |
1 files changed, 26 insertions, 12 deletions
diff --git a/src/pl/tcl/Makefile b/src/pl/tcl/Makefile index a15ff72c3be..b49e83a2add 100644 --- a/src/pl/tcl/Makefile +++ b/src/pl/tcl/Makefile @@ -2,7 +2,7 @@ # # Makefile for the pltcl shared object # -# $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.30 2001/05/09 20:30:09 momjian Exp $ +# $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.31 2001/05/09 21:35:11 momjian Exp $ # #------------------------------------------------------------------------- @@ -93,19 +93,33 @@ endif ifeq ($(TCL_SHARED_BUILD), 1) -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 +ifeq ($(enable_pltcl_unknown), no) +all: $(INFILES) +else +all: $(INFILES) \ + modules/pltcl_loadmod \ + modules/pltcl_delmod \ + modules/pltcl_listmod endif +modules/pltcl_loadmod: modules/pltcl_loadmod.in \ + $(top_builddir)/src/Makefile.global + sed -e 's,@TCLSH@,$(TCLSH),g' \ + $< >$@ + chmod a+x $@ + +modules/pltcl_delmod: modules/pltcl_delmod.in \ + $(top_builddir)/src/Makefile.global + sed -e 's,@TCLSH@,$(TCLSH),g' \ + $< >$@ + chmod a+x $@ + +modules/pltcl_listmod: modules/pltcl_listmod.in \ + $(top_builddir)/src/Makefile.global + sed -e 's,@TCLSH@,$(TCLSH),g' \ + $< >$@ + chmod a+x $@ + pltcl$(DLSUFFIX): pltcl.o install: all installdirs |