Skip to content

Commit e907997

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 4e4b900 commit e907997

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
@@ -62,11 +62,10 @@ top_builddir := $(dir $(PGXS))../..
6262
include $(top_builddir)/src/Makefile.global
6363

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

0 commit comments

Comments
 (0)