2015-03-23 18:47:52 +01:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Makefile for src/bin/pg_rewind
|
|
|
|
#
|
2017-01-03 19:48:53 +01:00
|
|
|
# Portions Copyright (c) 2013-2017, PostgreSQL Global Development Group
|
2015-03-23 18:47:52 +01:00
|
|
|
#
|
|
|
|
# src/bin/pg_rewind/Makefile
|
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
2015-12-01 16:56:44 +01:00
|
|
|
PGFILEDESC = "pg_rewind - synchronize a data directory with another one forked from"
|
2015-03-23 18:47:52 +01:00
|
|
|
PGAPPICON = win32
|
|
|
|
|
|
|
|
subdir = src/bin/pg_rewind
|
|
|
|
top_builddir = ../../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
|
|
|
|
PG_CPPFLAGS = -I$(libpq_srcdir)
|
|
|
|
PG_LIBS = $(libpq_pgport)
|
|
|
|
|
|
|
|
override CPPFLAGS := -I$(libpq_srcdir) -DFRONTEND $(CPPFLAGS)
|
|
|
|
|
|
|
|
OBJS = pg_rewind.o parsexlog.o xlogreader.o datapagemap.o timeline.o \
|
|
|
|
fetch.o file_ops.o copy_fetch.o libpq_fetch.o filemap.o logging.o \
|
|
|
|
$(WIN32RES)
|
|
|
|
|
2015-06-12 05:32:48 +02:00
|
|
|
EXTRA_CLEAN = xlogreader.c
|
2015-03-23 18:47:52 +01:00
|
|
|
|
|
|
|
all: pg_rewind
|
|
|
|
|
|
|
|
pg_rewind: $(OBJS) | submake-libpq submake-libpgport
|
|
|
|
$(CC) $(CFLAGS) $^ $(libpq_pgport) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
|
|
|
|
|
|
|
|
xlogreader.c: % : $(top_srcdir)/src/backend/access/transam/%
|
|
|
|
rm -f $@ && $(LN_S) $< .
|
|
|
|
|
|
|
|
install: all installdirs
|
|
|
|
$(INSTALL_PROGRAM) pg_rewind$(X) '$(DESTDIR)$(bindir)/pg_rewind$(X)'
|
|
|
|
|
|
|
|
installdirs:
|
|
|
|
$(MKDIR_P) '$(DESTDIR)$(bindir)'
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -f '$(DESTDIR)$(bindir)/pg_rewind$(X)'
|
|
|
|
|
|
|
|
clean distclean maintainer-clean:
|
|
|
|
rm -f pg_rewind$(X) $(OBJS) xlogreader.c
|
2015-07-09 12:19:10 +02:00
|
|
|
rm -rf tmp_check
|
2015-03-23 18:47:52 +01:00
|
|
|
|
2015-04-13 17:06:12 +02:00
|
|
|
check:
|
|
|
|
$(prove_check)
|
2015-04-21 13:09:25 +02:00
|
|
|
|
|
|
|
installcheck:
|
|
|
|
$(prove_installcheck)
|