Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcfb9b64

Browse files
committed
[pg_probackup]: added support of separate build directory
1 parentee81dfe commitcfb9b64

File tree

1 file changed

+22
-17
lines changed

1 file changed

+22
-17
lines changed

‎contrib/pg_probackup/Makefile

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -43,26 +43,31 @@ subdir=contrib/pg_probackup
4343
top_builddir=../..
4444
include$(top_builddir)/src/Makefile.global
4545
include$(top_srcdir)/contrib/contrib-global.mk
46+
ifeq ("$(top_srcdir)","../..")
47+
srchome="$(top_srcdir)/.."
48+
else
49+
srchome="$(top_srcdir)"
50+
endif
4651
# Those files are symlinked from the PostgreSQL sources.
47-
src/xlogreader.c:% :$(top_srcdir)/src/backend/access/transam/xlogreader.c
48-
rm -f$@&&$(LN_S)../$< ./src/xlogreader.c
49-
src/datapagemap.c:% :$(top_srcdir)/src/bin/pg_rewind/datapagemap.c
50-
rm -f$@&&$(LN_S)../$< ./src/datapagemap.c
51-
src/datapagemap.h:% :$(top_srcdir)/src/bin/pg_rewind/datapagemap.h
52-
rm -f$@&&$(LN_S)../$<src/datapagemap.h
53-
src/logging.h:% :$(top_srcdir)/src/bin/pg_rewind/logging.h
54-
rm -f$@&&$(LN_S)../$< ./src
55-
src/receivelog.c:% :$(top_srcdir)/src/bin/pg_basebackup/receivelog.c
56-
rm -f$@&&$(LN_S)../$< ./src
57-
src/receivelog.h:% :$(top_srcdir)/src/bin/pg_basebackup/receivelog.h
58-
rm -f$@&&$(LN_S)../$< ./src
59-
src/streamutil.c:% :$(top_srcdir)/src/bin/pg_basebackup/streamutil.c
60-
rm -f$@&&$(LN_S)../$< ./src
61-
src/streamutil.h:% :$(top_srcdir)/src/bin/pg_basebackup/streamutil.h
62-
rm -f$@&&$(LN_S)../$< ./src
52+
src/xlogreader.c:$(top_srcdir)/src/backend/access/transam/xlogreader.c
53+
rm -f$@&&$(LN_S)$(srchome)/src/backend/access/transam/xlogreader.c$@
54+
src/datapagemap.c:$(top_srcdir)/src/bin/pg_rewind/datapagemap.c
55+
rm -f$@&&$(LN_S)$(srchome)/src/bin/pg_rewind/datapagemap.c$@
56+
src/datapagemap.h:$(top_srcdir)/src/bin/pg_rewind/datapagemap.h
57+
rm -f$@&&$(LN_S)$(srchome)/src/bin/pg_rewind/datapagemap.h$@
58+
src/logging.h:$(top_srcdir)/src/bin/pg_rewind/logging.h
59+
rm -f$@&&$(LN_S)$(srchome)/src/bin/pg_rewind/logging.h$@
60+
src/receivelog.c:$(top_srcdir)/src/bin/pg_basebackup/receivelog.c
61+
rm -f$@&&$(LN_S)$(srchome)/src/bin/pg_basebackup/receivelog.c$@
62+
src/receivelog.h:$(top_srcdir)/src/bin/pg_basebackup/receivelog.h
63+
rm -f$@&&$(LN_S)$(srchome)/src/bin/pg_basebackup/receivelog.h$@
64+
src/streamutil.c:$(top_srcdir)/src/bin/pg_basebackup/streamutil.c
65+
rm -f$@&&$(LN_S)$(srchome)/src/bin/pg_basebackup/streamutil.c$@
66+
src/streamutil.h:$(top_srcdir)/src/bin/pg_basebackup/streamutil.h
67+
rm -f$@&&$(LN_S)$(srchome)/src/bin/pg_basebackup/streamutil.h$@
6368
endif
6469

65-
PG_CPPFLAGS = -I$(libpq_srcdir) ${PTHREAD_CFLAGS}
70+
PG_CPPFLAGS = -I$(libpq_srcdir) ${PTHREAD_CFLAGS} -Isrc
6671
overrideCPPFLAGS := -DFRONTEND$(CPPFLAGS)$(PG_CPPFLAGS)
6772
PG_LIBS =$(libpq_pgport) ${PTHREAD_CFLAGS}
6873

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp