Consolidate makefile code for setting top_srcdir, srcdir and VPATH.

Noah Misch <noah@leadboat.com>

Commit: c7446194fa8fbbb9e8d948668bb47563ab58f45f
Author: Noah Misch <noah@leadboat.com>
Date: 2015-07-31T00:49:18Z
Releases: 9.5.0
Consolidate makefile code for setting top_srcdir, srcdir and VPATH.

Responsibility was formerly split between Makefile.global and pgxs.mk.
As a result of commit b58233c71b93a32fcab7219585cafc25a27eb769, in the
PGXS case, these variables were unset while parsing Makefile.global and
callees.  Inclusion of Makefile.custom did not work from PGXS, and the
subtle difference seemed like a recipe for future bugs.  Back-patch to
9.4, where that commit first appeared.

Files

PathChange+/−
src/Makefile.global.in modified +18 −3
src/makefiles/pgxs.mk modified +0 −15