summaryrefslogtreecommitdiff
path: root/contrib/pg_resetxlog
diff options
context:
space:
mode:
authorPeter Eisentraut2001-09-06 10:49:30 +0000
committerPeter Eisentraut2001-09-06 10:49:30 +0000
commit17cc78ef01679deae3f0dac1c35ae777c2c73723 (patch)
tree57c116d4f29272878495dc748a14cb7249f5dc7c /contrib/pg_resetxlog
parent22ae53d4cdca7244b0de25f1d28255e1649aa936 (diff)
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.
Diffstat (limited to 'contrib/pg_resetxlog')
-rw-r--r--contrib/pg_resetxlog/Makefile30
1 files changed, 5 insertions, 25 deletions
diff --git a/contrib/pg_resetxlog/Makefile b/contrib/pg_resetxlog/Makefile
index eb4f536ff2b..eee05b1eda5 100644
--- a/contrib/pg_resetxlog/Makefile
+++ b/contrib/pg_resetxlog/Makefile
@@ -1,18 +1,12 @@
-#
-# $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/Makefile,v 1.2 2001/04/03 19:01:57 tgl Exp $
-#
+# $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/Makefile,v 1.3 2001/09/06 10:49:30 petere Exp $
subdir = contrib/pg_resetxlog
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
+PROGRAM = pg_resetxlog
OBJS = pg_resetxlog.o pg_crc.o $(SNPRINTF)
-all: pg_resetxlog
-
-pg_resetxlog: $(OBJS)
- $(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LIBS) -o $@
-
pg_crc.c: $(top_srcdir)/src/backend/utils/hash/pg_crc.c
rm -f $@ && $(LN_S) $< .
@@ -20,22 +14,8 @@ pg_crc.c: $(top_srcdir)/src/backend/utils/hash/pg_crc.c
snprintf.c: $(top_srcdir)/src/backend/port/snprintf.c
rm -f $@ && $(LN_S) $< .
-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
+EXTRA_CLEAN = pg_crc.c snprintf.c
-depend dep:
- $(CC) -MM -MG $(CFLAGS) *.c > depend
+DOCS = README.pg_resetxlog
-ifeq (depend,$(wildcard depend))
-include depend
-endif
+include $(top_srcdir)/contrib/contrib-global.mk