From 8cef6ae522f79e62b68837b0823e0c8833f0879e Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Thu, 2 Sep 2004 02:02:02 +0000
Subject: [PATCH] Remove pg_config_paths.h from libpq *.mak builds so later
 MinGW builds will succeed.

---
 src/bin/psql/bcc32.mak         | 1 +
 src/bin/psql/win32.mak         | 1 +
 src/interfaces/libpq/bcc32.mak | 1 +
 src/interfaces/libpq/win32.mak | 2 +-
 4 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/bin/psql/bcc32.mak b/src/bin/psql/bcc32.mak
index 2fbe2a22782..46b07452a6a 100644
--- a/src/bin/psql/bcc32.mak
+++ b/src/bin/psql/bcc32.mak
@@ -81,6 +81,7 @@ CLEAN :
 	-@erase "$(INTDIR)\psql.ils"
 	-@erase "$(INTDIR)\psql.ilf"
 	-@erase "$(OUTDIR)\psql.exe"
+	-@erase "$(INTDIR)\pg_config_paths.h"
 
 pg_config_paths.h: win32.mak
 	echo "#define PGBINDIR "">$@
diff --git a/src/bin/psql/win32.mak b/src/bin/psql/win32.mak
index 68dc0bb9cf6..3498a11c5d7 100644
--- a/src/bin/psql/win32.mak
+++ b/src/bin/psql/win32.mak
@@ -41,6 +41,7 @@ CLEAN :
 	-@erase "$(INTDIR)\mbprint.obj"
 	-@erase "$(INTDIR)\*psql.pch"
 	-@erase "$(OUTDIR)\psql.exe"
+	-@erase "$(INTDIR)\pg_config_paths.h"
 
 pg_config_paths.h: win32.mak
 	echo "#define PGBINDIR "">$@
diff --git a/src/interfaces/libpq/bcc32.mak b/src/interfaces/libpq/bcc32.mak
index e96272489eb..ac3e09cc38d 100644
--- a/src/interfaces/libpq/bcc32.mak
+++ b/src/interfaces/libpq/bcc32.mak
@@ -124,6 +124,7 @@ CLEAN :
 	-@erase "$(OUTDIR)\blibpqdll.lib"
 	-@erase "$(OUTDIR)\blibpq.dll"
 	-@erase "$(OUTDIR)\blibpq.tds"
+	-@erase "$(INTDIR)\pg_config_paths.h"
 
 config: ..\..\include\pg_config.h pthread.h pg_config_paths.h
 
diff --git a/src/interfaces/libpq/win32.mak b/src/interfaces/libpq/win32.mak
index bb79041790d..2fbc76dd32e 100644
--- a/src/interfaces/libpq/win32.mak
+++ b/src/interfaces/libpq/win32.mak
@@ -75,7 +75,7 @@ CLEAN :
 	-@erase "$(INTDIR)\wchar.obj"
 	-@erase "$(INTDIR)\encnames.obj"
 	-@erase "$(INTDIR)\pthread-win32.obj"
-
+	-@erase "$(INTDIR)\pg_config_paths.h"
 
 
 config: ..\..\include\pg_config.h pthread.h pg_config_paths.h
-- 
GitLab