mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Install dynamically loadable modules into a private subdirectory
under libdir, for a cleaner separation in the installation layout and compatibility with binary packaging standards. Point backend's default search location there. The contrib modules are also installed in the said location, giving them the benefit of the default search path as well. No changes in user interface nevertheless.
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
# $Header: /cvsroot/pgsql/contrib/contrib-global.mk,v 1.1 2001/09/06 10:49:29 petere Exp $
|
# $Header: /cvsroot/pgsql/contrib/contrib-global.mk,v 1.2 2001/09/16 16:11:08 petere Exp $
|
||||||
|
|
||||||
# This file contains generic rules to build many kinds of simple
|
# This file contains generic rules to build many kinds of simple
|
||||||
# contrib modules. You only need to set a few variables and include
|
# contrib modules. You only need to set a few variables and include
|
||||||
@ -78,8 +78,8 @@ ifneq (,$(DATA)$(DATA_built))
|
|||||||
endif # DATA
|
endif # DATA
|
||||||
ifdef MODULES
|
ifdef MODULES
|
||||||
@for file in $(addsuffix $(DLSUFFIX), $(MODULES)); do \
|
@for file in $(addsuffix $(DLSUFFIX), $(MODULES)); do \
|
||||||
echo "$(INSTALL_SHLIB) $$file $(DESTDIR)$(libdir)/contrib"; \
|
echo "$(INSTALL_SHLIB) $$file $(DESTDIR)$(pkglibdir)"; \
|
||||||
$(INSTALL_SHLIB) $$file $(DESTDIR)$(libdir)/contrib; \
|
$(INSTALL_SHLIB) $$file $(DESTDIR)$(pkglibdir); \
|
||||||
done
|
done
|
||||||
endif # MODULES
|
endif # MODULES
|
||||||
ifdef DOCS
|
ifdef DOCS
|
||||||
@ -92,12 +92,12 @@ ifdef PROGRAM
|
|||||||
$(INSTALL_PROGRAM) $(PROGRAM)$(X) $(DESTDIR)$(bindir)
|
$(INSTALL_PROGRAM) $(PROGRAM)$(X) $(DESTDIR)$(bindir)
|
||||||
endif # PROGRAM
|
endif # PROGRAM
|
||||||
ifdef MODULE_big
|
ifdef MODULE_big
|
||||||
$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(libdir)/contrib/$(MODULE_big)$(DLSUFFIX)
|
$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(pkglibdir)/$(MODULE_big)$(DLSUFFIX)
|
||||||
endif # MODULE_big
|
endif # MODULE_big
|
||||||
ifdef SCRIPTS
|
ifdef SCRIPTS
|
||||||
@for file in $(addprefix $(srcdir)/, $(SCRIPTS)); do \
|
@for file in $(addprefix $(srcdir)/, $(SCRIPTS)); do \
|
||||||
echo "$(INSTALL_SCRIPT) $$file $(DESTDIR)$(bindir)"; \
|
echo "$(INSTALL_SCRIPT) $$file $(DESTDIR)$(bindir)"; \
|
||||||
$(INSTALL_DATA) $$file $(DESTDIR)$(bindir); \
|
$(INSTALL_SCRIPT) $$file $(DESTDIR)$(bindir); \
|
||||||
done
|
done
|
||||||
endif # SCRIPTS
|
endif # SCRIPTS
|
||||||
|
|
||||||
@ -107,7 +107,7 @@ ifneq (,$(DATA)$(DATA_built))
|
|||||||
$(mkinstalldirs) $(DESTDIR)$(datadir)/contrib
|
$(mkinstalldirs) $(DESTDIR)$(datadir)/contrib
|
||||||
endif
|
endif
|
||||||
ifneq (,$(MODULES)$(MODULE_big))
|
ifneq (,$(MODULES)$(MODULE_big))
|
||||||
$(mkinstalldirs) $(DESTDIR)$(libdir)/contrib
|
$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
|
||||||
endif
|
endif
|
||||||
ifdef DOCS
|
ifdef DOCS
|
||||||
$(mkinstalldirs) $(DESTDIR)$(docdir)/contrib
|
$(mkinstalldirs) $(DESTDIR)$(docdir)/contrib
|
||||||
@ -122,7 +122,7 @@ ifneq (,$(DATA)$(DATA_built))
|
|||||||
rm -f $(addprefix $(DESTDIR)$(datadir)/contrib/, $(DATA) $(DATA_built))
|
rm -f $(addprefix $(DESTDIR)$(datadir)/contrib/, $(DATA) $(DATA_built))
|
||||||
endif
|
endif
|
||||||
ifdef MODULES
|
ifdef MODULES
|
||||||
rm -f $(addprefix $(DESTDIR)$(libdir)/contrib/, $(addsuffix $(DLSUFFIX), $(MODULES)))
|
rm -f $(addprefix $(DESTDIR)$(pkglibdir)/, $(addsuffix $(DLSUFFIX), $(MODULES)))
|
||||||
endif
|
endif
|
||||||
ifdef DOCS
|
ifdef DOCS
|
||||||
rm -f $(addprefix $(DESTDIR)$(docdir)/contrib/, $(DOCS))
|
rm -f $(addprefix $(DESTDIR)$(docdir)/contrib/, $(DOCS))
|
||||||
@ -131,7 +131,7 @@ ifdef PROGRAM
|
|||||||
rm -f $(DESTDIR)$(bindir)/$(PROGRAM)$(X)
|
rm -f $(DESTDIR)$(bindir)/$(PROGRAM)$(X)
|
||||||
endif
|
endif
|
||||||
ifdef MODULE_big
|
ifdef MODULE_big
|
||||||
rm -f $(DESTDIR)$(libdir)/contrib/$(MODULE_big)$(DLSUFFIX)
|
rm -f $(DESTDIR)$(pkglibdir)/$(MODULE_big)$(DLSUFFIX)
|
||||||
endif
|
endif
|
||||||
ifdef SCRIPTS
|
ifdef SCRIPTS
|
||||||
rm -f $(addprefix $(DESTDIR)$(bindir)/, $(SCRIPTS))
|
rm -f $(addprefix $(DESTDIR)$(bindir)/, $(SCRIPTS))
|
||||||
@ -193,7 +193,7 @@ endif # REGRESS
|
|||||||
|
|
||||||
ifneq (,$(MODULES)$(MODULE_big))
|
ifneq (,$(MODULES)$(MODULE_big))
|
||||||
%.sql: %.sql.in
|
%.sql: %.sql.in
|
||||||
sed 's,MODULE_PATHNAME,$(libdir)/contrib/$*,g' $< >$@
|
sed 's,MODULE_PATHNAME,$$libdir/$*,g' $< >$@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef PROGRAM
|
ifdef PROGRAM
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# $Header: /cvsroot/pgsql/contrib/pgcrypto/Makefile,v 1.5 2001/08/21 00:42:41 momjian Exp $
|
# $Header: /cvsroot/pgsql/contrib/pgcrypto/Makefile,v 1.6 2001/09/16 16:11:09 petere Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
subdir = contrib/pgcrypto
|
subdir = contrib/pgcrypto
|
||||||
@ -47,13 +47,14 @@ SO_MINOR_VERSION = 1
|
|||||||
|
|
||||||
override CPPFLAGS += $(CRYPTO_CFLAGS) -I$(srcdir)
|
override CPPFLAGS += $(CRYPTO_CFLAGS) -I$(srcdir)
|
||||||
override DLLLIBS := $(BE_DLLLIBS) $(DLLLIBS)
|
override DLLLIBS := $(BE_DLLLIBS) $(DLLLIBS)
|
||||||
|
rpath :=
|
||||||
|
|
||||||
all: all-lib $(NAME).sql
|
all: all-lib $(NAME).sql
|
||||||
|
|
||||||
include $(top_srcdir)/src/Makefile.shlib
|
include $(top_srcdir)/src/Makefile.shlib
|
||||||
|
|
||||||
$(NAME).sql: $(NAME).sql.in
|
$(NAME).sql: $(NAME).sql.in
|
||||||
sed 's,@MODULE_FILENAME@,$(libdir)/contrib/pgcrypto$(DLSUFFIX),g' $< >$@
|
sed 's,@MODULE_FILENAME@,$$libdir/$(NAME),g' $< >$@
|
||||||
|
|
||||||
rijndael.o: rijndael.tbl
|
rijndael.o: rijndael.tbl
|
||||||
|
|
||||||
@ -62,15 +63,15 @@ rijndael.tbl:
|
|||||||
./gen-rtab > rijndael.tbl
|
./gen-rtab > rijndael.tbl
|
||||||
|
|
||||||
install: all installdirs
|
install: all installdirs
|
||||||
$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(libdir)/contrib/pgcrypto$(DLSUFFIX)
|
$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(pkglibdir)/pgcrypto$(DLSUFFIX)
|
||||||
$(INSTALL_DATA) $(NAME).sql $(DESTDIR)$(datadir)/contrib/$(NAME).sql
|
$(INSTALL_DATA) $(NAME).sql $(DESTDIR)$(datadir)/contrib/$(NAME).sql
|
||||||
$(INSTALL_DATA) README.$(NAME) $(DESTDIR)$(docdir)/contrib/README.$(NAME)
|
$(INSTALL_DATA) README.$(NAME) $(DESTDIR)$(docdir)/contrib/README.$(NAME)
|
||||||
|
|
||||||
installdirs:
|
installdirs:
|
||||||
$(mkinstalldirs) $(libdir)/contrib $(datadir)/contrib $(docdir)/contrib
|
$(mkinstalldirs) $(pkglibdir) $(datadir)/contrib $(docdir)/contrib
|
||||||
|
|
||||||
uninstall: uninstall-lib
|
uninstall: uninstall-lib
|
||||||
rm -f $(DESTDIR)$(libdir)/contrib/pgcrypto$(DLSUFFIX) $(datadir)/contrib/$(NAME).sql $(docdir)/contrib/README.$(NAME)
|
rm -f $(DESTDIR)$(pkglibdir)/pgcrypto$(DLSUFFIX) $(datadir)/contrib/$(NAME).sql $(docdir)/contrib/README.$(NAME)
|
||||||
|
|
||||||
clean distclean maintainer-clean: clean-lib
|
clean distclean maintainer-clean: clean-lib
|
||||||
rm -f $(OBJS) $(NAME).sql gen-rtab
|
rm -f $(OBJS) $(NAME).sql gen-rtab
|
||||||
|
@ -22,15 +22,13 @@ override DLLLIBS := $(BE_DLLLIBS) $(DLLLIBS)
|
|||||||
all: $(SQLS) $(TCLS) $(PERLS) $(SCRIPTS) $(SONAME)
|
all: $(SQLS) $(TCLS) $(PERLS) $(SCRIPTS) $(SONAME)
|
||||||
|
|
||||||
%.sql: %.sql.in
|
%.sql: %.sql.in
|
||||||
sed -e "s:_OBJWD_:$(libdir)/contrib:g" \
|
sed 's,@MODULE_FILENAME@,$$libdir/$(NAME),g' $< >$@
|
||||||
-e "s:_DLSUFFIX_:$(DLSUFFIX):g" $< >$@
|
|
||||||
|
|
||||||
$(PERLS) $(TCLS) $(SCRIPTS): %: %.in
|
$(PERLS) $(TCLS) $(SCRIPTS): %: %.in
|
||||||
sed -e "s:_OBJWD_:$(libdir)/contrib:g" \
|
sed -e 's,@MODULE_FILENAME@,$$libdir/$(NAME),g' \
|
||||||
-e "s:_DLSUFFIX_:$(DLSUFFIX):g" \
|
-e 's:@SQLDIR@:$(datadir)/contrib:g' \
|
||||||
-e "s:@SQLDIR@:$(datadir)/contrib:g" \
|
-e 's:@BINDIR@:$(bindir):g' \
|
||||||
-e "s:@BINDIR@:$(bindir):g" \
|
-e 's:@LIBDIR@:$(datadir)/contrib:g' $< >$@
|
||||||
-e "s:@LIBDIR@:$(datadir)/contrib:g" $< >$@
|
|
||||||
chmod a+x $@
|
chmod a+x $@
|
||||||
|
|
||||||
|
|
||||||
@ -42,12 +40,12 @@ install: all installdirs
|
|||||||
$(INSTALL_SCRIPT) $$file $(DESTDIR)$(bindir) || exit ; \
|
$(INSTALL_SCRIPT) $$file $(DESTDIR)$(bindir) || exit ; \
|
||||||
done
|
done
|
||||||
$(INSTALL_DATA) $(srcdir)/RServ.pm $(DESTDIR)$(datadir)/contrib
|
$(INSTALL_DATA) $(srcdir)/RServ.pm $(DESTDIR)$(datadir)/contrib
|
||||||
$(INSTALL_SHLIB) $(SONAME) $(DESTDIR)$(libdir)/contrib
|
$(INSTALL_SHLIB) $(SONAME) $(DESTDIR)$(pkglibdir)
|
||||||
$(INSTALL_DATA) $(srcdir)/README.$(NAME) $(DESTDIR)$(docdir)/contrib
|
$(INSTALL_DATA) $(srcdir)/README.$(NAME) $(DESTDIR)$(docdir)/contrib
|
||||||
|
|
||||||
installdirs:
|
installdirs:
|
||||||
$(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(datadir)/contrib \
|
$(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(datadir)/contrib \
|
||||||
$(DESTDIR)$(libdir)/contrib $(DESTDIR)$(docdir)/contrib
|
$(DESTDIR)$(pkglibdir) $(DESTDIR)$(docdir)/contrib
|
||||||
|
|
||||||
|
|
||||||
clean distclean maintainer-clean:
|
clean distclean maintainer-clean:
|
||||||
|
@ -90,15 +90,15 @@ $result = $conn->exec("create sequence _rserv_sync_seq_");
|
|||||||
RollbackAndQuit($conn) if ($result->resultStatus ne PGRES_COMMAND_OK);
|
RollbackAndQuit($conn) if ($result->resultStatus ne PGRES_COMMAND_OK);
|
||||||
|
|
||||||
$result = $conn->exec("CREATE FUNCTION _rserv_log_() RETURNS opaque" .
|
$result = $conn->exec("CREATE FUNCTION _rserv_log_() RETURNS opaque" .
|
||||||
" AS '_OBJWD_/rserv_DLSUFFIX_' LANGUAGE 'c'");
|
" AS '@MODULE_FILENAME@' LANGUAGE 'c'");
|
||||||
RollbackAndQuit($conn) if ($result->resultStatus ne PGRES_COMMAND_OK);
|
RollbackAndQuit($conn) if ($result->resultStatus ne PGRES_COMMAND_OK);
|
||||||
|
|
||||||
$result = $conn->exec("CREATE FUNCTION _rserv_sync_(int4) RETURNS int4" .
|
$result = $conn->exec("CREATE FUNCTION _rserv_sync_(int4) RETURNS int4" .
|
||||||
" AS '_OBJWD_/rserv_DLSUFFIX_' LANGUAGE 'c'");
|
" AS '@MODULE_FILENAME@' LANGUAGE 'c'");
|
||||||
RollbackAndQuit($conn) if ($result->resultStatus ne PGRES_COMMAND_OK);
|
RollbackAndQuit($conn) if ($result->resultStatus ne PGRES_COMMAND_OK);
|
||||||
|
|
||||||
$result = $conn->exec("CREATE FUNCTION _rserv_debug_(int4) RETURNS int4" .
|
$result = $conn->exec("CREATE FUNCTION _rserv_debug_(int4) RETURNS int4" .
|
||||||
" AS '_OBJWD_/rserv_DLSUFFIX_' LANGUAGE 'c'");
|
" AS '@MODULE_FILENAME@' LANGUAGE 'c'");
|
||||||
RollbackAndQuit($conn) if ($result->resultStatus ne PGRES_COMMAND_OK);
|
RollbackAndQuit($conn) if ($result->resultStatus ne PGRES_COMMAND_OK);
|
||||||
|
|
||||||
$result = $conn->exec("COMMIT");
|
$result = $conn->exec("COMMIT");
|
||||||
|
@ -80,7 +80,7 @@ drop function _rserv_log_();
|
|||||||
|
|
||||||
CREATE FUNCTION _rserv_log_()
|
CREATE FUNCTION _rserv_log_()
|
||||||
RETURNS opaque
|
RETURNS opaque
|
||||||
AS '_OBJWD_/rserv_DLSUFFIX_'
|
AS '@MODULE_FILENAME@'
|
||||||
LANGUAGE 'c'
|
LANGUAGE 'c'
|
||||||
;
|
;
|
||||||
|
|
||||||
@ -88,7 +88,7 @@ drop function _rserv_sync_(int4);
|
|||||||
|
|
||||||
CREATE FUNCTION _rserv_sync_(int4)
|
CREATE FUNCTION _rserv_sync_(int4)
|
||||||
RETURNS int4
|
RETURNS int4
|
||||||
AS '_OBJWD_/rserv_DLSUFFIX_'
|
AS '@MODULE_FILENAME@'
|
||||||
LANGUAGE 'c'
|
LANGUAGE 'c'
|
||||||
;
|
;
|
||||||
|
|
||||||
@ -96,6 +96,6 @@ drop function _rserv_debug_(int4);
|
|||||||
|
|
||||||
CREATE FUNCTION _rserv_debug_(int4)
|
CREATE FUNCTION _rserv_debug_(int4)
|
||||||
RETURNS int4
|
RETURNS int4
|
||||||
AS '_OBJWD_/rserv_DLSUFFIX_'
|
AS '@MODULE_FILENAME@'
|
||||||
LANGUAGE 'c'
|
LANGUAGE 'c'
|
||||||
;
|
;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/installation.sgml,v 1.55 2001/09/12 20:57:28 petere Exp $ -->
|
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/installation.sgml,v 1.56 2001/09/16 16:11:09 petere Exp $ -->
|
||||||
|
|
||||||
<chapter id="installation">
|
<chapter id="installation">
|
||||||
<title><![%flattext-install-include[<productname>PostgreSQL</>]]>
|
<title><![%flattext-install-include[<productname>PostgreSQL</>]]>
|
||||||
@ -471,9 +471,11 @@ su - postgres
|
|||||||
<varname>includedir</varname> and are namespace-clean. The
|
<varname>includedir</varname> and are namespace-clean. The
|
||||||
internal header files and the server header files are installed
|
internal header files and the server header files are installed
|
||||||
into private directories under
|
into private directories under
|
||||||
<filename><replaceable>includedir</replaceable>/postgresql</filename>.
|
<varname>includedir</varname>.
|
||||||
See the <citetitle>Programmer's Guide</citetitle> for
|
See the <citetitle>Programmer's Guide</citetitle> for
|
||||||
information how to get at the header files for each interface.
|
information how to get at the header files for each interface.
|
||||||
|
Finally, a private subdirectory will also be created, if appropriate,
|
||||||
|
under <varname>libdir</varname> for dynamically loadable modules.
|
||||||
</para>
|
</para>
|
||||||
</note>
|
</note>
|
||||||
</para>
|
</para>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_config-ref.sgml,v 1.7 2001/09/03 12:57:50 petere Exp $ -->
|
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_config-ref.sgml,v 1.8 2001/09/16 16:11:09 petere Exp $ -->
|
||||||
|
|
||||||
<refentry id="app-pgconfig">
|
<refentry id="app-pgconfig">
|
||||||
<docinfo>
|
<docinfo>
|
||||||
@ -24,6 +24,7 @@
|
|||||||
<arg>--includedir</arg>
|
<arg>--includedir</arg>
|
||||||
<arg>--includedir-server</arg>
|
<arg>--includedir-server</arg>
|
||||||
<arg>--libdir</arg>
|
<arg>--libdir</arg>
|
||||||
|
<arg>--pkglibdir</arg>
|
||||||
<arg>--configure</arg>
|
<arg>--configure</arg>
|
||||||
<arg>--version</arg>
|
<arg>--version</arg>
|
||||||
</group>
|
</group>
|
||||||
@ -87,6 +88,18 @@
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>--pkglibdir</>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Print the location of dynamically loadable modules, or where
|
||||||
|
the server would search for them. (Other
|
||||||
|
architecture-dependent data files may also be installed in this
|
||||||
|
directory.)
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>--configure</>
|
<term>--configure</>
|
||||||
<listitem>
|
<listitem>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.79 2001/09/13 15:55:23 petere Exp $
|
$Header: /cvsroot/pgsql/doc/src/sgml/runtime.sgml,v 1.80 2001/09/16 16:11:09 petere Exp $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<Chapter Id="runtime">
|
<Chapter Id="runtime">
|
||||||
@ -1047,12 +1047,13 @@ env PGOPTIONS='-c geqo=off' psql
|
|||||||
The value for dynamic_library_path has to be a colon-separated
|
The value for dynamic_library_path has to be a colon-separated
|
||||||
list of absolute directory names. If a directory name starts
|
list of absolute directory names. If a directory name starts
|
||||||
with the special value <literal>$libdir</literal>, the
|
with the special value <literal>$libdir</literal>, the
|
||||||
compiled-in PostgreSQL library directory, which is where the
|
compiled-in PostgreSQL package library directory, which is where the
|
||||||
modules provided by the PostgreSQL distribution are installed,
|
modules provided by the PostgreSQL distribution are installed,
|
||||||
is substituted. An example value:
|
is substituted. (Use <literal>pg_config --pkglibdir</literal>
|
||||||
|
to print the name of this directory.) An example value:
|
||||||
<informalexample>
|
<informalexample>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
dynamic_library_path = '/usr/local/lib:/home/my_project/lib:$libdir:$libdir/contrib'
|
dynamic_library_path = '/usr/local/lib/postgresql:/home/my_project/lib:$libdir'
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</informalexample>
|
</informalexample>
|
||||||
</para>
|
</para>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
$Header: /cvsroot/pgsql/doc/src/sgml/xfunc.sgml,v 1.37 2001/09/15 19:56:59 petere Exp $
|
$Header: /cvsroot/pgsql/doc/src/sgml/xfunc.sgml,v 1.38 2001/09/16 16:11:09 petere Exp $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<chapter id="xfunc">
|
<chapter id="xfunc">
|
||||||
@ -466,7 +466,7 @@ CREATE FUNCTION square_root(double precision) RETURNS double precision
|
|||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
If the name starts with the string <literal>$libdir</literal>,
|
If the name starts with the string <literal>$libdir</literal>,
|
||||||
that part is replaced by the PostgreSQL library directory,
|
that part is replaced by the PostgreSQL package library directory,
|
||||||
which is determined at build time.
|
which is determined at build time.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
@ -516,7 +516,9 @@ CREATE FUNCTION square_root(double precision) RETURNS double precision
|
|||||||
It is recommended to locate shared libraries either relative to
|
It is recommended to locate shared libraries either relative to
|
||||||
<literal>$libdir</literal> or through the dynamic library path.
|
<literal>$libdir</literal> or through the dynamic library path.
|
||||||
This simplifies version upgrades if the new installation is at a
|
This simplifies version upgrades if the new installation is at a
|
||||||
different location.
|
different location. The actual directory that
|
||||||
|
<literal>$libdir</literal> stands for can be found out with the
|
||||||
|
command <literal>pg_config --pkglibdir</literal>.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<note>
|
<note>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# -*-makefile-*-
|
# -*-makefile-*-
|
||||||
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.136 2001/08/29 19:14:39 petere Exp $
|
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.137 2001/09/16 16:11:09 petere Exp $
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# All PostgreSQL makefiles include this file and use the variables it sets,
|
# All PostgreSQL makefiles include this file and use the variables it sets,
|
||||||
@ -80,10 +80,20 @@ endif
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
libdir := @libdir@
|
libdir := @libdir@
|
||||||
pkglibdir = $(libdir)/postgresql
|
pkglibdir = $(libdir)
|
||||||
|
ifeq "$(findstring pgsql, $(pkglibdir))" ""
|
||||||
|
ifeq "$(findstring postgres, $(pkglibdir))" ""
|
||||||
|
override pkglibdir := $(pkglibdir)/postgresql
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
includedir := @includedir@
|
includedir := @includedir@
|
||||||
pkgincludedir = $(includedir)/postgresql
|
pkgincludedir = $(includedir)
|
||||||
|
ifeq "$(findstring pgsql, $(pkgincludedir))" ""
|
||||||
|
ifeq "$(findstring postgres, $(pkgincludedir))" ""
|
||||||
|
override pkgincludedir := $(pkgincludedir)/postgresql
|
||||||
|
endif
|
||||||
|
endif
|
||||||
includedir_server = $(pkgincludedir)/server
|
includedir_server = $(pkgincludedir)/server
|
||||||
includedir_internal = $(pkgincludedir)/internal
|
includedir_internal = $(pkgincludedir)/internal
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 1994, Regents of the University of California
|
# Copyright (c) 1994, Regents of the University of California
|
||||||
#
|
#
|
||||||
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.73 2001/06/02 18:25:17 petere Exp $
|
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.74 2001/09/16 16:11:10 petere Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -136,28 +136,36 @@ ifeq ($(enable_nls), yes)
|
|||||||
$(MAKE) -C po $@
|
$(MAKE) -C po $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
installdirs:
|
|
||||||
$(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(libdir) $(DESTDIR)$(datadir)
|
|
||||||
ifeq ($(enable_nls), yes)
|
|
||||||
$(MAKE) -C po $@
|
|
||||||
endif
|
|
||||||
|
|
||||||
install-bin: postgres $(POSTGRES_IMP) installdirs
|
install-bin: postgres $(POSTGRES_IMP) installdirs
|
||||||
$(INSTALL_PROGRAM) postgres$(X) $(DESTDIR)$(bindir)/postgres$(X)
|
$(INSTALL_PROGRAM) postgres$(X) $(DESTDIR)$(bindir)/postgres$(X)
|
||||||
@rm -f $(DESTDIR)$(bindir)/postmaster
|
@rm -f $(DESTDIR)$(bindir)/postmaster
|
||||||
ln -s postgres$(X) $(DESTDIR)$(bindir)/postmaster
|
ln -s postgres$(X) $(DESTDIR)$(bindir)/postmaster
|
||||||
ifeq ($(MAKE_EXPORTS), true)
|
ifeq ($(MAKE_EXPORTS), true)
|
||||||
$(INSTALL_DATA) $(POSTGRES_IMP) $(DESTDIR)$(libdir)/$(POSTGRES_IMP)
|
$(INSTALL_DATA) $(POSTGRES_IMP) $(DESTDIR)$(pkglibdir)/$(POSTGRES_IMP)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: install-bin
|
.PHONY: install-bin
|
||||||
|
|
||||||
|
installdirs:
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(datadir)
|
||||||
|
ifeq ($(PORTNAME), win)
|
||||||
|
ifeq ($(MAKE_DLL), true)
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(MAKE_EXPORTS), true)
|
||||||
|
$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
|
||||||
|
endif
|
||||||
|
ifeq ($(enable_nls), yes)
|
||||||
|
$(MAKE) -C po $@
|
||||||
|
endif
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f $(DESTDIR)$(bindir)/postgres$(X) $(DESTDIR)$(bindir)/postmaster
|
rm -f $(DESTDIR)$(bindir)/postgres$(X) $(DESTDIR)$(bindir)/postmaster
|
||||||
ifeq ($(MAKE_EXPORTS), true)
|
ifeq ($(MAKE_EXPORTS), true)
|
||||||
rm -f $(DESTDIR)$(libdir)/$(POSTGRES_IMP)
|
rm -f $(DESTDIR)$(pkglibdir)/$(POSTGRES_IMP)
|
||||||
endif
|
endif
|
||||||
ifeq ($(PORTNAME), win)
|
ifeq ($(PORTNAME), win)
|
||||||
ifeq ($(MAKE_DLL), true)
|
ifeq ($(MAKE_DLL), true)
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# Makefile for utils/fmgr
|
# Makefile for utils/fmgr
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $Header: /cvsroot/pgsql/src/backend/utils/fmgr/Makefile,v 1.11 2001/05/17 17:44:18 petere Exp $
|
# $Header: /cvsroot/pgsql/src/backend/utils/fmgr/Makefile,v 1.12 2001/09/16 16:11:11 petere Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ include $(top_builddir)/src/Makefile.global
|
|||||||
|
|
||||||
OBJS = dfmgr.o fmgr.o
|
OBJS = dfmgr.o fmgr.o
|
||||||
|
|
||||||
override CPPFLAGS += -DLIBDIR=\"$(libdir)\" -DDLSUFFIX=\"$(DLSUFFIX)\"
|
override CPPFLAGS += -DPKGLIBDIR=\"$(pkglibdir)\" -DDLSUFFIX=\"$(DLSUFFIX)\"
|
||||||
|
|
||||||
|
|
||||||
all: SUBSYS.o
|
all: SUBSYS.o
|
||||||
@ -22,12 +22,5 @@ all: SUBSYS.o
|
|||||||
SUBSYS.o: $(OBJS)
|
SUBSYS.o: $(OBJS)
|
||||||
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
|
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
|
||||||
|
|
||||||
depend dep:
|
|
||||||
$(CC) -MM $(CFLAGS) *.c >depend
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f SUBSYS.o $(OBJS)
|
rm -f SUBSYS.o $(OBJS)
|
||||||
|
|
||||||
ifeq (depend,$(wildcard depend))
|
|
||||||
include depend
|
|
||||||
endif
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.50 2001/05/19 09:01:10 petere Exp $
|
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.51 2001/09/16 16:11:11 petere Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -224,8 +224,8 @@ file_exists(const char *name)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Example format: "/usr/local/pgsql/lib" */
|
/* Example format: "/usr/local/pgsql/lib" */
|
||||||
#ifndef LIBDIR
|
#ifndef PKGLIBDIR
|
||||||
#error "LIBDIR needs to be defined to compile this file."
|
#error "PKGLIBDIR needs to be defined to compile this file."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -297,7 +297,7 @@ substitute_libpath_macro(const char * name)
|
|||||||
macroname_len = strcspn(name + 1, "/") + 1;
|
macroname_len = strcspn(name + 1, "/") + 1;
|
||||||
|
|
||||||
if (strncmp(name, "$libdir", macroname_len)==0)
|
if (strncmp(name, "$libdir", macroname_len)==0)
|
||||||
replacement = LIBDIR;
|
replacement = PKGLIBDIR;
|
||||||
else
|
else
|
||||||
elog(ERROR, "invalid macro name in dynamic library path");
|
elog(ERROR, "invalid macro name in dynamic library path");
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# $Header: /cvsroot/pgsql/src/bin/pg_config/Makefile,v 1.2 2001/08/28 14:20:28 petere Exp $
|
# $Header: /cvsroot/pgsql/src/bin/pg_config/Makefile,v 1.3 2001/09/16 16:11:11 petere Exp $
|
||||||
|
|
||||||
subdir = src/bin/pg_config
|
subdir = src/bin/pg_config
|
||||||
top_builddir = ../../..
|
top_builddir = ../../..
|
||||||
@ -12,6 +12,7 @@ pg_config: pg_config.sh $(top_builddir)/config.status $(top_builddir)/src/Makefi
|
|||||||
-e 's,@includedir@,$(includedir),g' \
|
-e 's,@includedir@,$(includedir),g' \
|
||||||
-e 's,@includedir_server@,$(includedir_server),g' \
|
-e 's,@includedir_server@,$(includedir_server),g' \
|
||||||
-e 's,@libdir@,$(libdir),g' \
|
-e 's,@libdir@,$(libdir),g' \
|
||||||
|
-e 's,@pkglibdir@,$(pkglibdir),g' \
|
||||||
-e "s,@configure@,$$configure,g" \
|
-e "s,@configure@,$$configure,g" \
|
||||||
-e 's,@version@,$(VERSION),g' \
|
-e 's,@version@,$(VERSION),g' \
|
||||||
$< >$@
|
$< >$@
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
# Author: Peter Eisentraut <peter_e@gmx.net>
|
# Author: Peter Eisentraut <peter_e@gmx.net>
|
||||||
# Public domain
|
# Public domain
|
||||||
|
|
||||||
# $Header: /cvsroot/pgsql/src/bin/pg_config/Attic/pg_config.sh,v 1.4 2001/08/28 14:20:28 petere Exp $
|
# $Header: /cvsroot/pgsql/src/bin/pg_config/Attic/pg_config.sh,v 1.5 2001/09/16 16:11:11 petere Exp $
|
||||||
|
|
||||||
me=`basename $0`
|
me=`basename $0`
|
||||||
|
|
||||||
@ -16,13 +16,14 @@ val_bindir='@bindir@'
|
|||||||
val_includedir='@includedir@'
|
val_includedir='@includedir@'
|
||||||
val_includedir_server='@includedir_server@'
|
val_includedir_server='@includedir_server@'
|
||||||
val_libdir='@libdir@'
|
val_libdir='@libdir@'
|
||||||
|
val_pkglibdir='@pkglibdir@'
|
||||||
val_configure="@configure@"
|
val_configure="@configure@"
|
||||||
val_version='@version@'
|
val_version='@version@'
|
||||||
|
|
||||||
help="\
|
help="\
|
||||||
$me provides information about the installed version of PostgreSQL.
|
$me provides information about the installed version of PostgreSQL.
|
||||||
|
|
||||||
Usage: $me --bindir | --includedir | --includedir-server | --libdir | --configure | --version
|
Usage: $me --bindir | --includedir | --includedir-server | --libdir | --pkglibdir | --configure | --version
|
||||||
|
|
||||||
Operation modes:
|
Operation modes:
|
||||||
--bindir show location of user executables
|
--bindir show location of user executables
|
||||||
@ -30,6 +31,7 @@ Operation modes:
|
|||||||
interfaces
|
interfaces
|
||||||
--includedir-server show location of C header files for the server
|
--includedir-server show location of C header files for the server
|
||||||
--libdir show location of object code libraries
|
--libdir show location of object code libraries
|
||||||
|
--pkglibdir show location of dynamically loadable modules
|
||||||
--configure show options given to 'configure' script when
|
--configure show options given to 'configure' script when
|
||||||
PostgreSQL was built
|
PostgreSQL was built
|
||||||
--version show the PostgreSQL version and exit
|
--version show the PostgreSQL version and exit
|
||||||
@ -55,6 +57,7 @@ do
|
|||||||
--includedir-server)
|
--includedir-server)
|
||||||
show="$show \$val_includedir_server";;
|
show="$show \$val_includedir_server";;
|
||||||
--libdir) show="$show \$val_libdir";;
|
--libdir) show="$show \$val_libdir";;
|
||||||
|
--pkglibdir) show="$show \$val_pkglibdir";;
|
||||||
--configure) show="$show \$val_configure";;
|
--configure) show="$show \$val_configure";;
|
||||||
|
|
||||||
--version) echo "PostgreSQL $val_version"
|
--version) echo "PostgreSQL $val_version"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# $Header: /cvsroot/pgsql/src/pl/plperl/GNUmakefile,v 1.7 2001/08/26 23:54:41 petere Exp $
|
# $Header: /cvsroot/pgsql/src/pl/plperl/GNUmakefile,v 1.8 2001/09/16 16:11:11 petere Exp $
|
||||||
|
|
||||||
subdir = src/pl/plperl
|
subdir = src/pl/plperl
|
||||||
top_builddir = ../../..
|
top_builddir = ../../..
|
||||||
@ -13,17 +13,17 @@ all: Makefile
|
|||||||
$(MAKE) -f $< all VPATH=$(VPATH)
|
$(MAKE) -f $< all VPATH=$(VPATH)
|
||||||
|
|
||||||
Makefile: Makefile.PL
|
Makefile: Makefile.PL
|
||||||
plperl_installdir='$$(DESTDIR)$(libdir)' \
|
plperl_installdir='$$(DESTDIR)$(pkglibdir)' \
|
||||||
$(PERL) $< $(makefile_pl_flags) INC='-I$(srcdir) $(filter -I%, $(CPPFLAGS))'
|
$(PERL) $< $(makefile_pl_flags) INC='-I$(srcdir) $(filter -I%, $(CPPFLAGS))'
|
||||||
|
|
||||||
install: all installdirs
|
install: all installdirs
|
||||||
$(MAKE) -f Makefile install DESTDIR='$(DESTDIR)'
|
$(MAKE) -f Makefile install DESTDIR='$(DESTDIR)'
|
||||||
|
|
||||||
installdirs:
|
installdirs:
|
||||||
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f $(DESTDIR)$(libdir)/plperl$(DLSUFFIX)
|
rm -f $(DESTDIR)$(pkglibdir)/plperl$(DLSUFFIX)
|
||||||
|
|
||||||
clean distclean maintainer-clean:
|
clean distclean maintainer-clean:
|
||||||
-[ -f Makefile ] && $(MAKE) -f Makefile clean
|
-[ -f Makefile ] && $(MAKE) -f Makefile clean
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Makefile for the plpgsql shared object
|
# Makefile for the plpgsql shared object
|
||||||
#
|
#
|
||||||
# $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Makefile,v 1.17 2001/08/21 16:25:21 petere Exp $
|
# $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Makefile,v 1.18 2001/09/16 16:11:11 petere Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -20,8 +20,8 @@ SO_MAJOR_VERSION= 1
|
|||||||
SO_MINOR_VERSION= 0
|
SO_MINOR_VERSION= 0
|
||||||
|
|
||||||
override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
|
override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
|
||||||
|
|
||||||
override DLLLIBS := $(BE_DLLLIBS) $(DLLLIBS)
|
override DLLLIBS := $(BE_DLLLIBS) $(DLLLIBS)
|
||||||
|
rpath :=
|
||||||
|
|
||||||
OBJS = pl_parse.o pl_handler.o pl_comp.o pl_exec.o pl_funcs.o
|
OBJS = pl_parse.o pl_handler.o pl_comp.o pl_exec.o pl_funcs.o
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ include $(top_srcdir)/src/Makefile.shlib
|
|||||||
|
|
||||||
install: installdirs all
|
install: installdirs all
|
||||||
ifeq ($(enable_shared), yes)
|
ifeq ($(enable_shared), yes)
|
||||||
$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(libdir)/plpgsql$(DLSUFFIX)
|
$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(pkglibdir)/plpgsql$(DLSUFFIX)
|
||||||
else
|
else
|
||||||
@echo "*****"; \
|
@echo "*****"; \
|
||||||
echo "* PL/pgSQL was not installed due to lack of shared library support."; \
|
echo "* PL/pgSQL was not installed due to lack of shared library support."; \
|
||||||
@ -54,10 +54,10 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
installdirs:
|
installdirs:
|
||||||
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f $(DESTDIR)$(libdir)/plpgsql$(DLSUFFIX)
|
rm -f $(DESTDIR)$(pkglibdir)/plpgsql$(DLSUFFIX)
|
||||||
|
|
||||||
pl_handler.o pl_comp.o pl_exec.o pl_funcs.o: plpgsql.h $(srcdir)/pl.tab.h
|
pl_handler.o pl_comp.o pl_exec.o pl_funcs.o: plpgsql.h $(srcdir)/pl.tab.h
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# $Header: /cvsroot/pgsql/src/pl/plpython/Makefile,v 1.9 2001/08/27 00:29:49 petere Exp $
|
# $Header: /cvsroot/pgsql/src/pl/plpython/Makefile,v 1.10 2001/09/16 16:11:11 petere Exp $
|
||||||
|
|
||||||
subdir = src/pl/plpython
|
subdir = src/pl/plpython
|
||||||
top_builddir = ../../..
|
top_builddir = ../../..
|
||||||
@ -17,8 +17,8 @@ endif
|
|||||||
ifneq (,$(findstring yes, $(shared_libpython)$(allow_nonpic_in_shlib)))
|
ifneq (,$(findstring yes, $(shared_libpython)$(allow_nonpic_in_shlib)))
|
||||||
|
|
||||||
override CPPFLAGS := -I$(srcdir) $(python_includespec) $(CPPFLAGS)
|
override CPPFLAGS := -I$(srcdir) $(python_includespec) $(CPPFLAGS)
|
||||||
|
|
||||||
override DLLLIBS := $(BE_DLLLIBS) $(DLLLIBS)
|
override DLLLIBS := $(BE_DLLLIBS) $(DLLLIBS)
|
||||||
|
rpath :=
|
||||||
|
|
||||||
NAME = plpython
|
NAME = plpython
|
||||||
SO_MAJOR_VERSION = 0
|
SO_MAJOR_VERSION = 0
|
||||||
@ -33,13 +33,13 @@ include $(top_srcdir)/src/Makefile.shlib
|
|||||||
all: all-lib
|
all: all-lib
|
||||||
|
|
||||||
install: all installdirs
|
install: all installdirs
|
||||||
$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(libdir)/plpython$(DLSUFFIX)
|
$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(pkglibdir)/plpython$(DLSUFFIX)
|
||||||
|
|
||||||
installdirs:
|
installdirs:
|
||||||
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f $(DESTDIR)$(libdir)/plpython$(DLSUFFIX)
|
rm -f $(DESTDIR)$(pkglibdir)/plpython$(DLSUFFIX)
|
||||||
|
|
||||||
clean distclean maintainer-clean: clean-lib
|
clean distclean maintainer-clean: clean-lib
|
||||||
rm -f $(OBJS)
|
rm -f $(OBJS)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Makefile for the pltcl shared object
|
# Makefile for the pltcl shared object
|
||||||
#
|
#
|
||||||
# $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.33 2001/05/11 23:38:06 petere Exp $
|
# $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.34 2001/09/16 16:11:11 petere Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -93,19 +93,19 @@ endif
|
|||||||
pltcl$(DLSUFFIX): pltcl.o
|
pltcl$(DLSUFFIX): pltcl.o
|
||||||
|
|
||||||
install: all installdirs
|
install: all installdirs
|
||||||
$(INSTALL_SHLIB) $(DLOBJS) $(DESTDIR)$(libdir)/$(DLOBJS)
|
$(INSTALL_SHLIB) $(DLOBJS) $(DESTDIR)$(pkglibdir)/$(DLOBJS)
|
||||||
ifeq ($(enable_pltcl_unknown), yes)
|
ifeq ($(enable_pltcl_unknown), yes)
|
||||||
$(MAKE) -C modules $@
|
$(MAKE) -C modules $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
installdirs:
|
installdirs:
|
||||||
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
|
||||||
ifeq ($(enable_pltcl_unknown), yes)
|
ifeq ($(enable_pltcl_unknown), yes)
|
||||||
$(MAKE) -C modules $@
|
$(MAKE) -C modules $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f $(DESTDIR)$(libdir)/$(DLOBJS)
|
rm -f $(DESTDIR)$(pkglibdir)/$(DLOBJS)
|
||||||
ifeq ($(enable_pltcl_unknown), yes)
|
ifeq ($(enable_pltcl_unknown), yes)
|
||||||
$(MAKE) -C modules $@
|
$(MAKE) -C modules $@
|
||||||
endif
|
endif
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $Header: /cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.34 2001/04/04 21:15:56 tgl Exp $
|
# $Header: /cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.35 2001/09/16 16:11:11 petere Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -34,6 +34,7 @@ all: pg_regress
|
|||||||
pg_regress: pg_regress.sh GNUmakefile
|
pg_regress: pg_regress.sh GNUmakefile
|
||||||
sed -e 's,@bindir@,$(bindir),g' \
|
sed -e 's,@bindir@,$(bindir),g' \
|
||||||
-e 's,@libdir@,$(libdir),g' \
|
-e 's,@libdir@,$(libdir),g' \
|
||||||
|
-e 's,@pkglibdir@,$(pkglibdir),g' \
|
||||||
-e 's,@datadir@,$(datadir),g' \
|
-e 's,@datadir@,$(datadir),g' \
|
||||||
-e 's/@VERSION@/$(VERSION)/g' \
|
-e 's/@VERSION@/$(VERSION)/g' \
|
||||||
-e 's/@host_tuple@/$(host_tuple)/g' \
|
-e 's/@host_tuple@/$(host_tuple)/g' \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.21 2001/05/27 09:59:30 petere Exp $
|
# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.22 2001/09/16 16:11:11 petere Exp $
|
||||||
|
|
||||||
me=`basename $0`
|
me=`basename $0`
|
||||||
: ${TMPDIR=/tmp}
|
: ${TMPDIR=/tmp}
|
||||||
@ -70,6 +70,7 @@ fi
|
|||||||
: ${outputdir=.}
|
: ${outputdir=.}
|
||||||
|
|
||||||
libdir='@libdir@'
|
libdir='@libdir@'
|
||||||
|
pkglibdir='@pkglibdir@'
|
||||||
bindir='@bindir@'
|
bindir='@bindir@'
|
||||||
datadir='@datadir@'
|
datadir='@datadir@'
|
||||||
host_platform='@host_tuple@'
|
host_platform='@host_tuple@'
|
||||||
@ -271,6 +272,7 @@ then
|
|||||||
|
|
||||||
bindir=$temp_install/install/$bindir
|
bindir=$temp_install/install/$bindir
|
||||||
libdir=$temp_install/install/$libdir
|
libdir=$temp_install/install/$libdir
|
||||||
|
pkglibdir=$temp_install/install/$pkglibdir
|
||||||
datadir=$temp_install/install/$datadir
|
datadir=$temp_install/install/$datadir
|
||||||
PGDATA=$temp_install/data
|
PGDATA=$temp_install/data
|
||||||
|
|
||||||
@ -450,7 +452,7 @@ fi
|
|||||||
|
|
||||||
if [ "$enable_shared" = yes ]; then
|
if [ "$enable_shared" = yes ]; then
|
||||||
message "installing PL/pgSQL"
|
message "installing PL/pgSQL"
|
||||||
"$bindir/createlang" -L "$libdir" $psql_options plpgsql $dbname
|
"$bindir/createlang" -L "$pkglibdir" $psql_options plpgsql $dbname
|
||||||
if [ $? -ne 0 ] && [ $? -ne 2 ]; then
|
if [ $? -ne 0 ] && [ $? -ne 2 ]; then
|
||||||
echo "$me: createlang failed"
|
echo "$me: createlang failed"
|
||||||
(exit 2); exit
|
(exit 2); exit
|
||||||
|
Reference in New Issue
Block a user