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

Commiteb1c3f4

Browse files
committed
Remove USE_VPATH make variable from PGXS
The user can just set VPATH directly. There is no need to inventanother variable.
1 parent1e95bbc commiteb1c3f4

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

‎doc/src/sgml/extend.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,10 +1180,10 @@ make -f /path/to/extension/source/tree/Makefile install
11801180
way to how it is done for the core code. One way to do this is using the
11811181
core script <filename>config/prep_buildtree</>. Once this has been done
11821182
you can build by setting the <literal>make</literal> variable
1183-
<varname>USE_VPATH</varname> like this:
1183+
<varname>VPATH</varname> like this:
11841184
<programlisting>
1185-
makeUSE_VPATH=/path/to/extension/source/tree
1186-
makeUSE_VPATH=/path/to/extension/source/tree install
1185+
makeVPATH=/path/to/extension/source/tree
1186+
makeVPATH=/path/to/extension/source/tree install
11871187
</programlisting>
11881188
This procedure can work with a greater variety of directory layouts.
11891189
</para>

‎src/makefiles/pgxs.mk

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,10 @@ top_builddir := $(dir $(PGXS))../..
6363
include$(top_builddir)/src/Makefile.global
6464

6565
top_srcdir =$(top_builddir)
66-
# If USE_VPATH is set or Makefile is not in current directory we are building
67-
# the extension with VPATH so we set the variable here
68-
ifdefUSE_VPATH
69-
srcdir =$(USE_VPATH)
70-
VPATH =$(USE_VPATH)
66+
# If VPATH is set or Makefile is not in current directory we are building
67+
# the extension with VPATH so we set the variable here.
68+
ifdefVPATH
69+
srcdir =$(VPATH)
7170
else
7271
ifeq ($(CURDIR),$(dir$(firstword$(MAKEFILE_LIST))))
7372
srcdir = .

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp