Move routines to manipulate WAL into PostgreSQL::Test::Cluster
[pgsql.git] / src / bin / pg_resetwal / Makefile
blob82bea06dee5a31bf0a9ebe562ce87afd042156b1
1 #-------------------------------------------------------------------------
3 # Makefile for src/bin/pg_resetwal
5 # Copyright (c) 1998-2025, PostgreSQL Global Development Group
7 # src/bin/pg_resetwal/Makefile
9 #-------------------------------------------------------------------------
11 PGFILEDESC = "pg_resetwal - reset PostgreSQL WAL log"
12 PGAPPICON=win32
14 subdir = src/bin/pg_resetwal
15 top_builddir = ../../..
16 include $(top_builddir)/src/Makefile.global
18 LDFLAGS_INTERNAL += -L$(top_builddir)/src/fe_utils -lpgfeutils
20 OBJS = \
21 $(WIN32RES) \
22 pg_resetwal.o
24 all: pg_resetwal
26 pg_resetwal: $(OBJS) | submake-libpgport
27 $(CC) $(CFLAGS) $^ $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
29 install: all installdirs
30 $(INSTALL_PROGRAM) pg_resetwal$(X) '$(DESTDIR)$(bindir)/pg_resetwal$(X)'
32 installdirs:
33 $(MKDIR_P) '$(DESTDIR)$(bindir)'
35 uninstall:
36 rm -f '$(DESTDIR)$(bindir)/pg_resetwal$(X)'
38 clean distclean:
39 rm -f pg_resetwal$(X) $(OBJS)
40 rm -rf tmp_check
42 check:
43 $(prove_check)
45 installcheck:
46 $(prove_installcheck)