summaryrefslogtreecommitdiff
path: root/contrib/pg_logger
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2001-09-06 10:49:30 +0000
committerPeter Eisentraut <peter_e@gmx.net>2001-09-06 10:49:30 +0000
commit17cc78ef01679deae3f0dac1c35ae777c2c73723 (patch)
tree57c116d4f29272878495dc748a14cb7249f5dc7c /contrib/pg_logger
parent22ae53d4cdca7244b0de25f1d28255e1649aa936 (diff)
downloadpostgresql-17cc78ef01679deae3f0dac1c35ae777c2c73723.tar.gz
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_logger')
-rw-r--r--contrib/pg_logger/Makefile30
1 files changed, 4 insertions, 26 deletions
diff --git a/contrib/pg_logger/Makefile b/contrib/pg_logger/Makefile
index 4a3f180419..1a622bfe2a 100644
--- a/contrib/pg_logger/Makefile
+++ b/contrib/pg_logger/Makefile
@@ -1,34 +1,12 @@
-#
-# $Header: /cvsroot/pgsql/contrib/pg_logger/Attic/Makefile,v 1.1 2001/02/11 02:18:27 momjian Exp $
-#
+# $Header: /cvsroot/pgsql/contrib/pg_logger/Attic/Makefile,v 1.2 2001/09/06 10:49:30 petere Exp $
subdir = contrib/pg_logger
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
+PROGRAM = pg_logger
OBJS = pg_logger.o
-all: pg_logger
+DOCS = README.pg_logger
-pg_logger: $(OBJS)
- $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o $@
-
-install: all installdirs
- $(INSTALL_PROGRAM) pg_logger$(X) $(bindir)
- $(INSTALL_DATA) README.pg_logger $(docdir)/contrib
-
-installdirs:
- $(mkinstalldirs) $(bindir) $(docdir)/contrib
-
-uninstall:
- rm -f $(bindir)/pg_logger$(X) $(docdir)/contrib/README.pg_logger
-
-clean distclean maintainer-clean:
- rm -f pg_logger$(X) $(OBJS)
-
-depend dep:
- $(CC) -MM -MG $(CFLAGS) *.c > depend
-
-ifeq (depend,$(wildcard depend))
-include depend
-endif
+include $(top_srcdir)/contrib/contrib-global.mk