2002-08-17 04:44:24 +02:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Makefile for src/bin/pg_resetxlog
|
|
|
|
#
|
2016-01-02 19:33:40 +01:00
|
|
|
# Copyright (c) 1998-2016, PostgreSQL Global Development Group
|
2002-08-17 04:44:24 +02:00
|
|
|
#
|
2010-09-20 22:08:53 +02:00
|
|
|
# src/bin/pg_resetxlog/Makefile
|
2002-08-17 04:44:24 +02:00
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
2004-10-05 21:30:25 +02:00
|
|
|
PGFILEDESC = "pg_resetxlog - reset PostgreSQL WAL log"
|
2010-05-12 13:33:10 +02:00
|
|
|
PGAPPICON=win32
|
|
|
|
|
2002-08-17 04:44:24 +02:00
|
|
|
subdir = src/bin/pg_resetxlog
|
|
|
|
top_builddir = ../../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
|
2012-02-29 01:53:39 +01:00
|
|
|
OBJS= pg_resetxlog.o $(WIN32RES)
|
2002-08-17 04:44:24 +02:00
|
|
|
|
2010-11-12 21:15:16 +01:00
|
|
|
all: pg_resetxlog
|
2002-08-17 04:44:24 +02:00
|
|
|
|
2010-11-12 21:15:16 +01:00
|
|
|
pg_resetxlog: $(OBJS) | submake-libpgport
|
2010-07-05 20:54:38 +02:00
|
|
|
$(CC) $(CFLAGS) $^ $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@$(X)
|
2002-08-17 04:44:24 +02:00
|
|
|
|
|
|
|
install: all installdirs
|
2005-12-09 22:19:36 +01:00
|
|
|
$(INSTALL_PROGRAM) pg_resetxlog$(X) '$(DESTDIR)$(bindir)/pg_resetxlog$(X)'
|
2002-08-17 04:44:24 +02:00
|
|
|
|
|
|
|
installdirs:
|
2009-08-27 00:24:44 +02:00
|
|
|
$(MKDIR_P) '$(DESTDIR)$(bindir)'
|
2002-08-17 04:44:24 +02:00
|
|
|
|
|
|
|
uninstall:
|
2005-12-09 22:19:36 +01:00
|
|
|
rm -f '$(DESTDIR)$(bindir)/pg_resetxlog$(X)'
|
2002-08-17 04:44:24 +02:00
|
|
|
|
|
|
|
clean distclean maintainer-clean:
|
2012-02-29 01:53:39 +01:00
|
|
|
rm -f pg_resetxlog$(X) $(OBJS)
|