mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-02-17 15:24:28 +02:00
fix
This commit is contained in:
parent
56e6250fc8
commit
882515fa7a
53
Makefile
53
Makefile
@ -21,11 +21,45 @@ ifndef top_srcdir
|
||||
@echo "variable: \"make top_srcdir=<path to PostgreSQL source tree>\""
|
||||
@exit 1
|
||||
endif
|
||||
# Those files are symlinked from the PostgreSQL sources.
|
||||
src/xlogreader.c: % : $(top_srcdir)/src/backend/access/transam/xlogreader.c
|
||||
rm -f $@ && $(LN_S) $< ./src/xlogreader.c
|
||||
src/datapagemap.c: % : $(top_srcdir)/src/bin/pg_rewind/datapagemap.c
|
||||
rm -f $@ && $(LN_S) $< ./src/datapagemap.c
|
||||
src/datapagemap.h: % : $(top_srcdir)/src/bin/pg_rewind/datapagemap.h
|
||||
rm -f $@ && $(LN_S) $< src/datapagemap.h
|
||||
src/logging.h: % : $(top_srcdir)/src/bin/pg_rewind/logging.h
|
||||
rm -f $@ && $(LN_S) $< ./src
|
||||
src/receivelog.c: % : $(top_srcdir)/src/bin/pg_basebackup/receivelog.c
|
||||
rm -f $@ && $(LN_S) $< ./src
|
||||
src/receivelog.h: % : $(top_srcdir)/src/bin/pg_basebackup/receivelog.h
|
||||
rm -f $@ && $(LN_S) $< ./src
|
||||
src/streamutil.c: % : $(top_srcdir)/src/bin/pg_basebackup/streamutil.c
|
||||
rm -f $@ && $(LN_S) $< ./src
|
||||
src/streamutil.h: % : $(top_srcdir)/src/bin/pg_basebackup/streamutil.h
|
||||
rm -f $@ && $(LN_S) $< ./src
|
||||
else
|
||||
subdir=contrib/pg_probackup
|
||||
top_builddir=../..
|
||||
include $(top_builddir)/src/Makefile.global
|
||||
include $(top_srcdir)/contrib/contrib-global.mk
|
||||
# Those files are symlinked from the PostgreSQL sources.
|
||||
src/xlogreader.c: % : $(top_srcdir)/src/backend/access/transam/xlogreader.c
|
||||
rm -f $@ && $(LN_S) ../$< ./src/xlogreader.c
|
||||
src/datapagemap.c: % : $(top_srcdir)/src/bin/pg_rewind/datapagemap.c
|
||||
rm -f $@ && $(LN_S) ../$< ./src/datapagemap.c
|
||||
src/datapagemap.h: % : $(top_srcdir)/src/bin/pg_rewind/datapagemap.h
|
||||
rm -f $@ && $(LN_S) ../$< src/datapagemap.h
|
||||
src/logging.h: % : $(top_srcdir)/src/bin/pg_rewind/logging.h
|
||||
rm -f $@ && $(LN_S) ../$< ./src
|
||||
src/receivelog.c: % : $(top_srcdir)/src/bin/pg_basebackup/receivelog.c
|
||||
rm -f $@ && $(LN_S) ../$< ./src
|
||||
src/receivelog.h: % : $(top_srcdir)/src/bin/pg_basebackup/receivelog.h
|
||||
rm -f $@ && $(LN_S) ../$< ./src
|
||||
src/streamutil.c: % : $(top_srcdir)/src/bin/pg_basebackup/streamutil.c
|
||||
rm -f $@ && $(LN_S) ../$< ./src
|
||||
src/streamutil.h: % : $(top_srcdir)/src/bin/pg_basebackup/streamutil.h
|
||||
rm -f $@ && $(LN_S) ../$< ./src
|
||||
endif
|
||||
|
||||
PG_CPPFLAGS = -I$(libpq_srcdir) ${PTHREAD_CFLAGS}
|
||||
@ -50,22 +84,3 @@ ifndef top_srcdir
|
||||
@echo "variable: \"make top_srcdir=<path to PostgreSQL source tree>\""
|
||||
@exit 1
|
||||
endif
|
||||
|
||||
|
||||
# Those files are symlinked from the PostgreSQL sources.
|
||||
src/xlogreader.c: % : $(top_srcdir)/src/backend/access/transam/xlogreader.c
|
||||
rm -f $@ && $(LN_S) ../$< ./src/xlogreader.c
|
||||
src/datapagemap.c: % : $(top_srcdir)/src/bin/pg_rewind/datapagemap.c
|
||||
rm -f $@ && $(LN_S) ../$< ./src/datapagemap.c
|
||||
src/datapagemap.h: % : $(top_srcdir)/src/bin/pg_rewind/datapagemap.h
|
||||
rm -f $@ && $(LN_S) ../$< src/datapagemap.h
|
||||
src/logging.h: % : $(top_srcdir)/src/bin/pg_rewind/logging.h
|
||||
rm -f $@ && $(LN_S) ../$< ./src
|
||||
src/receivelog.c: % : $(top_srcdir)/src/bin/pg_basebackup/receivelog.c
|
||||
rm -f $@ && $(LN_S) ../$< ./src
|
||||
src/receivelog.h: % : $(top_srcdir)/src/bin/pg_basebackup/receivelog.h
|
||||
rm -f $@ && $(LN_S) ../$< ./src
|
||||
src/streamutil.c: % : $(top_srcdir)/src/bin/pg_basebackup/streamutil.c
|
||||
rm -f $@ && $(LN_S) ../$< ./src
|
||||
src/streamutil.h: % : $(top_srcdir)/src/bin/pg_basebackup/streamutil.h
|
||||
rm -f $@ && $(LN_S) ../$< ./src
|
||||
|
Loading…
x
Reference in New Issue
Block a user