mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-24 18:55:04 +08:00
Add ability to change installation directory in build, prior to configure
This commit is contained in:
parent
7cbe19384f
commit
17c4321411
@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# IDENTIFICATION
|
||||||
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.13 1997/03/25 07:16:30 scrappy Exp $
|
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.14 1997/03/26 06:53:57 scrappy Exp $
|
||||||
#
|
#
|
||||||
# NOTES
|
# NOTES
|
||||||
# Essentially all Postgres make files include this file and use the
|
# Essentially all Postgres make files include this file and use the
|
||||||
@ -82,7 +82,7 @@ LIBPQDIR:= $(SRCDIR)/libpq
|
|||||||
# For convenience, POSTGRESDIR is where BINDIR, and LIBDIR
|
# For convenience, POSTGRESDIR is where BINDIR, and LIBDIR
|
||||||
# and other target destinations are rooted. Of course, each of these is
|
# and other target destinations are rooted. Of course, each of these is
|
||||||
# changable separately.
|
# changable separately.
|
||||||
POSTGRESDIR= /usr/local/pgsql
|
POSTGRESDIR= @prefix@
|
||||||
|
|
||||||
# Where the postgres executables live (changeable by just putting them
|
# Where the postgres executables live (changeable by just putting them
|
||||||
# somewhere else and putting that directory in your shell PATH)
|
# somewhere else and putting that directory in your shell PATH)
|
||||||
|
11
src/build
11
src/build
@ -30,5 +30,14 @@ then
|
|||||||
LDFLAGS="$ADD_LIB_DIRS" ; export LDFLAGS
|
LDFLAGS="$ADD_LIB_DIRS" ; export LDFLAGS
|
||||||
fi
|
fi
|
||||||
|
|
||||||
./configure
|
$ECHO_N "Installation directory [/usr/local/pgsql]: $ECHO_C"
|
||||||
|
read a
|
||||||
|
if [ "$a." != "." ]
|
||||||
|
then
|
||||||
|
IDIR=${a}
|
||||||
|
else
|
||||||
|
IDIR=/usr/local/pgsql
|
||||||
|
fi
|
||||||
|
|
||||||
|
./configure --prefix=${IDIR}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user