#-------------------------------------------------------------------------
#
# Makefile for src/test/recovery
#
# Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
#
# src/test/recovery/Makefile
#
#-------------------------------------------------------------------------

EXTRA_INSTALL=contrib/pg_prewarm \
	contrib/pg_stat_statements \
	contrib/test_decoding \
	src/test/modules/injection_points \
	src/test/modules/test_wait_lsn

subdir = src/test/recovery
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global

# [PG_CUSTOM: CFS]
# t/065_cfs_utilities.pl exercises page-level contrib extensions on CFS
# tables, so they must be installed into the temp installation.  This must
# come AFTER the include of Makefile.global so that $(with_cfs) is defined.
ifeq ($(with_cfs),yes)
EXTRA_INSTALL += contrib/amcheck \
	contrib/pageinspect \
	contrib/pgstattuple
endif

export enable_injection_points

# required for 017_shm.pl and 027_stream_regress.pl
REGRESS_SHLIB=$(abs_top_builddir)/src/test/regress/regress$(DLSUFFIX)
export REGRESS_SHLIB

check:
	$(prove_check)

installcheck:
	$(prove_installcheck)

clean distclean:
	rm -rf tmp_check
