From: Peter Eisentraut Date: Thu, 20 Nov 2014 02:51:30 +0000 (-0500) Subject: Remove USE_VPATH make variable from PGXS X-Git-Tag: REL9_4_0~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e907997f42faada60e5a26b116cc0b79b69309d1;p=postgresql Remove USE_VPATH make variable from PGXS The user can just set VPATH directly. There is no need to invent another variable. --- diff --git a/doc/src/sgml/extend.sgml b/doc/src/sgml/extend.sgml index a2d4ca26d8..be10252013 100644 --- a/doc/src/sgml/extend.sgml +++ b/doc/src/sgml/extend.sgml @@ -1180,10 +1180,10 @@ make -f /path/to/extension/source/tree/Makefile install way to how it is done for the core code. One way to do this is using the core script config/prep_buildtree. Once this has been done you can build by setting the make variable - USE_VPATH like this: + VPATH like this: -make USE_VPATH=/path/to/extension/source/tree -make USE_VPATH=/path/to/extension/source/tree install +make VPATH=/path/to/extension/source/tree +make VPATH=/path/to/extension/source/tree install This procedure can work with a greater variety of directory layouts. diff --git a/src/makefiles/pgxs.mk b/src/makefiles/pgxs.mk index 8cf229e23c..60cccddb72 100644 --- a/src/makefiles/pgxs.mk +++ b/src/makefiles/pgxs.mk @@ -62,11 +62,10 @@ top_builddir := $(dir $(PGXS))../.. include $(top_builddir)/src/Makefile.global top_srcdir = $(top_builddir) -# If USE_VPATH is set or Makefile is not in current directory we are building -# the extension with VPATH so we set the variable here -ifdef USE_VPATH -srcdir = $(USE_VPATH) -VPATH = $(USE_VPATH) +# If VPATH is set or Makefile is not in current directory we are building +# the extension with VPATH so we set the variable here. +ifdef VPATH +srcdir = $(VPATH) else ifeq ($(CURDIR),$(dir $(firstword $(MAKEFILE_LIST)))) srcdir = .