Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit17c4321

Browse files
committed
Add ability to change installation directory in build, prior to configure
1 parent7cbe193 commit17c4321

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

‎src/Makefile.global.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
#
99
# IDENTIFICATION
10-
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.13 1997/03/25 07:16:30 scrappy Exp $
10+
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.14 1997/03/26 06:53:57 scrappy Exp $
1111
#
1212
# NOTES
1313
# Essentially all Postgres make files include this file and use the
@@ -82,7 +82,7 @@ LIBPQDIR:= $(SRCDIR)/libpq
8282
# For convenience, POSTGRESDIR is where BINDIR, and LIBDIR
8383
# and other target destinations are rooted. Of course, each of these is
8484
# changable separately.
85-
POSTGRESDIR=/usr/local/pgsql
85+
POSTGRESDIR=@prefix@
8686

8787
# Where the postgres executables live (changeable by just putting them
8888
# somewhere else and putting that directory in your shell PATH)

‎src/build

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,14 @@ then
3030
LDFLAGS="$ADD_LIB_DIRS";export LDFLAGS
3131
fi
3232

33-
./configure
33+
$ECHO_N"Installation directory [/usr/local/pgsql]:$ECHO_C"
34+
read a
35+
if ["$a."!="." ]
36+
then
37+
IDIR=${a}
38+
else
39+
IDIR=/usr/local/pgsql
40+
fi
41+
42+
./configure --prefix=${IDIR}
3443

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp