Add error pattern checks for some TAP tests for non-existing objects
[pgsql.git] / src / bin / pg_verifybackup / Makefile
blob374d4a8afd1752a58968f833265096a31b175e67
1 # src/bin/pg_verifybackup/Makefile
3 PGFILEDESC = "pg_verifybackup - verify a backup against using a backup manifest"
4 PGAPPICON = win32
6 # make these available to TAP test scripts
7 export TAR
8 # Note that GZIP cannot be used directly as this environment variable is
9 # used by the command "gzip" to pass down options, so stick with a different
10 # name.
11 export GZIP_PROGRAM=$(GZIP)
12 export LZ4=$(LZ4)
13 export ZSTD=$(ZSTD)
15 subdir = src/bin/pg_verifybackup
16 top_builddir = ../../..
17 include $(top_builddir)/src/Makefile.global
19 # We need libpq only because fe_utils does.
20 override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
21 LDFLAGS_INTERNAL += -L$(top_builddir)/src/fe_utils -lpgfeutils $(libpq_pgport)
23 OBJS = \
24 $(WIN32RES) \
25 astreamer_verify.o \
26 pg_verifybackup.o
28 all: pg_verifybackup
30 pg_verifybackup: $(OBJS) | submake-libpq submake-libpgport submake-libpgfeutils
31 $(CC) $(CFLAGS) $^ $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
33 install: all installdirs
34 $(INSTALL_PROGRAM) pg_verifybackup$(X) '$(DESTDIR)$(bindir)/pg_verifybackup$(X)'
36 installdirs:
37 $(MKDIR_P) '$(DESTDIR)$(bindir)'
39 uninstall:
40 rm -f '$(DESTDIR)$(bindir)/pg_verifybackup$(X)'
42 clean distclean:
43 rm -f pg_verifybackup$(X) $(OBJS)
44 rm -rf tmp_check
46 check:
47 $(prove_check)
49 installcheck:
50 $(prove_installcheck)