head	1.7;
access;
symbols
	REL7_2_8:1.3
	REL7_2_7:1.3
	REL7_2_6:1.3
	REL7_2_5:1.3
	REL7_2_4:1.3
	REL7_2_3:1.3
	REL7_2_STABLE:1.3.0.2
	REL7_2:1.3
	REL7_2_RC2:1.3
	REL7_2_RC1:1.3
	REL7_2_BETA5:1.3
	REL7_2_BETA4:1.3
	REL7_2_BETA3:1.3
	REL7_2_BETA2:1.3
	REL7_2_BETA1:1.3
	REL7_1_2:1.2
	REL7_1_STABLE:1.2.0.2
	REL7_1:1.2;
locks; strict;
comment	@# @;


1.7
date	2002.08.17.02.43.08;	author momjian;	state dead;
branches;
next	1.6;

1.6
date	2002.07.27.20.10.03;	author petere;	state Exp;
branches;
next	1.5;

1.5
date	2002.07.18.04.33.39;	author momjian;	state Exp;
branches;
next	1.4;

1.4
date	2002.07.18.03.59.49;	author momjian;	state Exp;
branches;
next	1.3;

1.3
date	2001.09.06.10.49.30;	author petere;	state Exp;
branches;
next	1.2;

1.2
date	2001.04.03.19.01.57;	author tgl;	state Exp;
branches;
next	1.1;

1.1
date	2001.03.14.00.57.43;	author tgl;	state Exp;
branches;
next	;


desc
@@


1.7
log
@Move pg_controldata to /bin.
@
text
@# $Header: /cvsroot/pgsql-server/contrib/pg_resetxlog/Makefile,v 1.6 2002/07/27 20:10:03 petere Exp $

subdir = contrib/pg_resetxlog
top_builddir = ../..
include $(top_builddir)/src/Makefile.global

all: submake-libpgport

PROGRAM = pg_resetxlog
OBJS	= pg_resetxlog.o pg_crc.o

pg_crc.c: $(top_srcdir)/src/backend/utils/hash/pg_crc.c
	rm -f $@@ && $(LN_S) $< .

EXTRA_CLEAN = pg_crc.c

DOCS = README.pg_resetxlog

include $(top_srcdir)/contrib/contrib-global.mk
@


1.6
log
@Assemble portability modules into libpgport library.
Some makefile simplifications.
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Makefile,v 1.5 2002/07/18 04:33:39 momjian Exp $
@


1.5
log
@Contrib port/ usage is same as others so no need for rules.
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Makefile,v 1.4 2002/07/18 03:59:49 momjian Exp $
d7 2
d10 1
a10 1
OBJS	= pg_resetxlog.o pg_crc.o $(SNPRINTF)
d15 1
a15 1
EXTRA_CLEAN = pg_crc.c snprintf.c
@


1.4
log
@Make src/backend/port/*.c file location dependent only on configure.in.
@
text
@d1 1
a1 1
# $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Makefile,v 1.3 2001/09/06 10:49:30 petere Exp $
d8 1
a8 1
OBJS	= pg_resetxlog.o pg_crc.o $(notdir $(SNPRINTF))
a11 5

ifdef SNPRINTF
$(basename $(notdir $(SNPRINTF))).c: $(basename $(SNPRINTF)).c
	rm -f $@@ && $(LN_S) $< .
endif
@


1.3
log
@To fix the perpetually broken makefiles in the contrib tree, I have
written a generic framework of rules that the contrib makefiles can
use instead of writing their own each time.  You only need to set a few
variables and off you go.
@
text
@d1 1
a1 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/contrib/pg_resetxlog/Makefile,v 1.2 2001/04/03 19:01:57 tgl Exp $
d8 1
a8 1
OBJS	= pg_resetxlog.o pg_crc.o $(SNPRINTF)
d13 2
a14 2
# this only gets done if configure finds system doesn't have snprintf()
snprintf.c: $(top_srcdir)/src/backend/port/snprintf.c
d16 1
@


1.2
log
@Provide snprintf() if system hasn't got it.
@
text
@d1 1
a1 3
#
# $Header: /home/projects/pgsql/cvsroot/pgsql/contrib/pg_resetxlog/Makefile,v 1.1 2001/03/14 00:57:43 tgl Exp $
#
d7 1
a9 5
all: pg_resetxlog

pg_resetxlog: $(OBJS)
	$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LIBS) -o $@@

d17 1
a17 12
install: all installdirs
	$(INSTALL_PROGRAM) pg_resetxlog$(X)	$(bindir)
	$(INSTALL_DATA) README.pg_resetxlog	$(docdir)/contrib

installdirs:
	$(mkinstalldirs) $(bindir) $(docdir)/contrib

uninstall:
	rm -f $(bindir)/pg_resetxlog$(X) $(docdir)/contrib/README.pg_resetxlog

clean distclean maintainer-clean:
	rm -f pg_resetxlog$(X) $(OBJS) pg_crc.c snprintf.c
d19 1
a19 2
depend dep:
	$(CC) -MM -MG $(CFLAGS) *.c > depend
d21 1
a21 3
ifeq (depend,$(wildcard depend))
include depend
endif
@


1.1
log
@First cut at XLOG file reset utility.
Could do with more testing, but it works in the simple cases.
@
text
@d2 1
a2 1
# $Header$
d9 1
a9 1
OBJS	= pg_resetxlog.o pg_crc.o
d16 5
a20 1
pg_crc.c: $(top_builddir)/src/backend/utils/hash/pg_crc.c
d34 1
a34 1
	rm -f pg_resetxlog$(X) $(OBJS) pg_crc.c
@
