Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9623b72

Browse files
committed
Don't build the win32 support files in the all target, only in distprep and
when they are actually needed as prerequisites.
1 parent f6f8d61 commit 9623b72

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

src/Makefile.shlib

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Copyright (c) 1998, Regents of the University of California
77
#
88
# IDENTIFICATION
9-
# $PostgreSQL: pgsql/src/Makefile.shlib,v 1.112 2008/02/26 10:45:24 petere Exp $
9+
# $PostgreSQL: pgsql/src/Makefile.shlib,v 1.113 2008/02/26 14:26:16 petere Exp $
1010
#
1111
#-------------------------------------------------------------------------
1212

@@ -363,13 +363,7 @@ endif # enable_shared
363363
# tarballs.
364364

365365
ifneq (,$(SHLIB_EXPORTS))
366-
all: def-files
367-
368-
distprep: def-files
369-
370-
.PHONY: def-files
371-
372-
def-files: $(srcdir)/lib$(NAME)dll.def $(srcdir)/lib$(NAME)ddll.def $(srcdir)/blib$(NAME)dll.def
366+
distprep: $(srcdir)/lib$(NAME)dll.def $(srcdir)/lib$(NAME)ddll.def $(srcdir)/blib$(NAME)dll.def
373367

374368
UC_NAME = $(shell echo $(NAME) | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')
375369

src/interfaces/libpq/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
66
# Portions Copyright (c) 1994, Regents of the University of California
77
#
8-
# $PostgreSQL: pgsql/src/interfaces/libpq/Makefile,v 1.162 2008/02/26 13:31:40 petere Exp $
8+
# $PostgreSQL: pgsql/src/interfaces/libpq/Makefile,v 1.163 2008/02/26 14:26:16 petere Exp $
99
#
1010
#-------------------------------------------------------------------------
1111

@@ -66,7 +66,7 @@ endif
6666

6767
SHLIB_EXPORTS = exports.txt
6868

69-
all: $(srcdir)/libpq-dist.rc all-lib
69+
all: all-lib
7070

7171
# Shared library stuff
7272
include $(top_srcdir)/src/Makefile.shlib

0 commit comments

Comments
 (0)