From 4502c8e1c06164adb7be526096e91e04d1844d36 Mon Sep 17 00:00:00 2001
From: Peter Eisentraut <peter_e@gmx.net>
Date: Tue, 8 Mar 2011 23:49:59 +0200
Subject: [PATCH] Fix parallel make when running make install before make all

In addition to the

all-foo-recurse: all-bar-recurse

dependencies that constraint the order of the rule execution, we need

install-foo-recurse: install-bar-recurse

dependencies in case one runs make install without a make all first,
as some people apparently do.
---
 src/interfaces/Makefile      | 1 +
 src/interfaces/ecpg/Makefile | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/src/interfaces/Makefile b/src/interfaces/Makefile
index 9fe368eed50..7d56b29d28f 100644
--- a/src/interfaces/Makefile
+++ b/src/interfaces/Makefile
@@ -17,3 +17,4 @@ SUBDIRS = libpq ecpg
 $(recurse)
 
 all-ecpg-recurse: all-libpq-recurse
+install-ecpg-recurse: install-libpq-recurse
diff --git a/src/interfaces/ecpg/Makefile b/src/interfaces/ecpg/Makefile
index ca434c8ce22..e89f2fe0f28 100644
--- a/src/interfaces/ecpg/Makefile
+++ b/src/interfaces/ecpg/Makefile
@@ -8,6 +8,8 @@ $(recurse)
 
 all-compatlib-recurse: all-ecpglib-recurse
 all-ecpglib-recurse: all-pgtypeslib-recurse
+install-compatlib-recurse: install-ecpglib-recurse
+install-ecpglib-recurse: install-pgtypeslib-recurse
 
 clean distclean maintainer-clean:
 	$(MAKE) -C test clean
-- 
GitLab