summaryrefslogtreecommitdiff
path: root/contrib/chkpass
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/chkpass
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/chkpass')
-rw-r--r--contrib/chkpass/Makefile51
1 files changed, 5 insertions, 46 deletions
diff --git a/contrib/chkpass/Makefile b/contrib/chkpass/Makefile
index 1b37743282..afa9ee46fa 100644
--- a/contrib/chkpass/Makefile
+++ b/contrib/chkpass/Makefile
@@ -1,52 +1,11 @@
-#
-# $Header: /cvsroot/pgsql/contrib/chkpass/Makefile,v 1.2 2001/08/23 16:50:33 tgl Exp $
-#
+# $Header: /cvsroot/pgsql/contrib/chkpass/Makefile,v 1.3 2001/09/06 10:49:29 petere Exp $
subdir = contrib/chkpass
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
-# override libdir to install shlib in contrib not main directory
-libdir := $(libdir)/contrib
+MODULES = chkpass
+DATA_built = chkpass.sql
+DOCS = README.chkpass
-# shared library parameters
-NAME= chkpass
-SO_MAJOR_VERSION= 1
-SO_MINOR_VERSION= 0
-
-override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
-
-ifdef REFINT_VERBOSE
-override CPPFLAGS+= -DREFINT_VERBOSE
-endif
-
-OBJS= chkpass.o
-
-all: all-lib $(NAME).sql
-
-# Shared library stuff
-include $(top_srcdir)/src/Makefile.shlib
-
-
-$(NAME).sql: $(NAME).sql.in
- sed -e 's:MODULE_PATHNAME:$(libdir)/$(shlib):g' < $< > $@
-
-install: all installdirs install-lib
- $(INSTALL_DATA) $(srcdir)/README.$(NAME) $(docdir)/contrib
- $(INSTALL_DATA) $(NAME).sql $(datadir)/contrib
-
-installdirs:
- $(mkinstalldirs) $(docdir)/contrib $(datadir)/contrib $(libdir)
-
-uninstall: uninstall-lib
- rm -f $(docdir)/contrib/README.$(NAME) $(datadir)/contrib/$(NAME).sql
-
-clean distclean maintainer-clean: clean-lib
- rm -f $(OBJS) $(NAME).sql
-
-depend dep:
- $(CC) -MM -MG $(CFLAGS) *.c >depend
-
-ifeq (depend,$(wildcard depend))
-include depend
-endif
+include $(top_srcdir)/contrib/contrib-global.mk