From 56173d94a9b0ee0c602f7f4af71c245b817f5641 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Mon, 22 Oct 2018 16:38:18 +0900 Subject: [PATCH] Fix Makefile for VPATH builds under PostgreSQL 11 --- Makefile.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 36040829..2f022973 100644 --- a/Makefile.in +++ b/Makefile.in @@ -30,13 +30,18 @@ all: \ PG_CPPFLAGS = -std=gnu89 -I$(includedir_internal) -I$(libpq_srcdir) -Wall -Wmissing-prototypes -Wmissing-declarations $(EXTRA_CFLAGS) SHLIB_LINK = $(libpq) -HEADERS = $(wildcard *.h) + OBJS = \ repmgr.o include Makefile.global +ifeq ($(vpath_build),yes) + HEADERS = $(wildcard *.h) +else + HEADERS_built = $(wildcard *.h) +endif $(info Building against PostgreSQL $(MAJORVERSION))