Skip to content

Commit eb1c3f4

Browse files
committed
Remove USE_VPATH make variable from PGXS
The user can just set VPATH directly. There is no need to invent another variable.
1 parent 1e95bbc commit eb1c3f4

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-
make USE_VPATH=/path/to/extension/source/tree
1186-
make USE_VPATH=/path/to/extension/source/tree install
1185+
make VPATH=/path/to/extension/source/tree
1186+
make VPATH=/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-
ifdef USE_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+
ifdef VPATH
69+
srcdir = $(VPATH)
7170
else
7271
ifeq ($(CURDIR),$(dir $(firstword $(MAKEFILE_LIST))))
7372
srcdir = .

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy