mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-27 20:02:32 +02:00
29275b1d17
Reported-by: Michael Paquier Discussion: https://postgr.es/m/ZZKTDPxBBMt3C0J9@paquier.xyz Backpatch-through: 12
54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
Makefile
#-------------------------------------------------------------------------
|
|
#
|
|
# Makefile for src/bin/pg_combinebackup
|
|
#
|
|
# Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
|
|
# Portions Copyright (c) 1994, Regents of the University of California
|
|
#
|
|
# src/bin/pg_combinebackup/Makefile
|
|
#
|
|
#-------------------------------------------------------------------------
|
|
|
|
PGFILEDESC = "pg_combinebackup - combine incremental backups"
|
|
PGAPPICON=win32
|
|
|
|
subdir = src/bin/pg_combinebackup
|
|
top_builddir = ../../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
|
|
LDFLAGS_INTERNAL += -L$(top_builddir)/src/fe_utils -lpgfeutils
|
|
|
|
OBJS = \
|
|
$(WIN32RES) \
|
|
pg_combinebackup.o \
|
|
backup_label.o \
|
|
copy_file.o \
|
|
load_manifest.o \
|
|
reconstruct.o \
|
|
write_manifest.o
|
|
|
|
all: pg_combinebackup
|
|
|
|
pg_combinebackup: $(OBJS) | submake-libpgport submake-libpgfeutils
|
|
$(CC) $(CFLAGS) $^ $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
|
|
|
|
install: all installdirs
|
|
$(INSTALL_PROGRAM) pg_combinebackup$(X) '$(DESTDIR)$(bindir)/pg_combinebackup$(X)'
|
|
|
|
installdirs:
|
|
$(MKDIR_P) '$(DESTDIR)$(bindir)'
|
|
|
|
uninstall:
|
|
rm -f '$(DESTDIR)$(bindir)/pg_combinebackup$(X)'
|
|
|
|
clean distclean maintainer-clean:
|
|
rm -f pg_combinebackup$(X) $(OBJS)
|
|
rm -rf tmp_check
|
|
|
|
check:
|
|
$(prove_check)
|
|
|
|
installcheck:
|
|
$(prove_installcheck)
|