From dab81b99539d9d689e80cb50c914c28c09e5e124 Mon Sep 17 00:00:00 2001
From: Kyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Date: Wed, 10 Jul 2019 14:48:21 +0900
Subject: [PATCH] Make src/include first

Make complains and stops its work in some directories that requires
some inclue/catalog/*_d.h files when -j is specified. Moving include
to the top of SUBDIRS in the top Makefile to fix it.
---
 src/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/Makefile b/src/Makefile
index bcdbd9588a..a1139d960b 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -12,14 +12,15 @@ subdir = src
 top_builddir = ..
 include Makefile.global
 
+# include is needed to be processed prior to the other subdirs
 SUBDIRS = \
+	include \
 	common \
 	port \
 	timezone \
 	backend \
 	backend/utils/mb/conversion_procs \
 	backend/snowball \
-	include \
 	interfaces \
 	backend/replication/libpqwalreceiver \
 	backend/replication/pgoutput \
-- 
2.16.3

