postgresql/contrib/README

81 lines
1.5 KiB
Plaintext
Raw Normal View History

2000-06-16 02:55:34 +08:00
The PostgreSQL contrib tree
~~~~~~~~~~~~~~~~~~~~~~~~~~~
2000-06-16 02:55:34 +08:00
FIXME:
odbc
spi/preprocessor
tools
2000-06-19 21:54:50 +08:00
- the contrib contain is in the "Contrib.index"
2000-06-16 02:55:34 +08:00
- in each directory must be Makefile, possible Makefile template
is below this text,
2000-06-16 02:55:34 +08:00
--------
#
2000-06-19 21:54:50 +08:00
# $Header: /cvsroot/pgsql/contrib/README,v 1.19 2000/06/19 13:52:59 momjian Exp $
2000-06-16 02:55:34 +08:00
#
2000-06-16 02:55:34 +08:00
TOPDIR=../..
2000-06-16 02:55:34 +08:00
include ../Makefile.global
2000-06-16 02:55:34 +08:00
NAME = some_name
2000-06-16 02:55:34 +08:00
PROGRAM =
OBJS = $(NAME).o
DOCS = $(NAME).doc
SQLS = $(NAME).sql
BINS =
EXAMPLES=
MODS = $(NAME)$(DLSUFFIX)
2000-06-16 02:55:34 +08:00
CFLAGS += -I. $(CFLAGS_SL)
2000-06-16 02:55:34 +08:00
OTHER_CLEAN = $(SQLS)
2000-06-16 02:55:34 +08:00
all: $(MODS) $(SQLS)
2000-06-16 02:55:34 +08:00
%.sql: %.sql.in
$(SED) "s|MODULE_PATHNAME|$(CONTRIB_MODDIR)/$@|" < $< > $@
2000-06-16 02:55:34 +08:00
install: install_doc install_sql install_mod install_bin install_example
2000-06-16 02:55:34 +08:00
install_doc:
for inst_file in $(DOCS); do \
$(INSTALL) $(INSTL_LIB_OPTS) $$inst_file $(CONTRIB_DOCDIR); \
done
2000-06-16 02:55:34 +08:00
install_sql:
for inst_file in $(SQLS); do \
$(INSTALL) $(INSTL_LIB_OPTS) $$inst_file $(CONTRIB_SQLDIR); \
done
2000-06-16 02:55:34 +08:00
install_mod:
for inst_file in $(MODS); do \
$(INSTALL) $(INSTL_SHLIB_OPTS) $$inst_file $(CONTRIB_MODDIR); \
done
2000-06-16 02:55:34 +08:00
install_bin:
for inst_file in $(BINS); do \
$(INSTALL) $(INSTL_EXE_OPTS) $$inst_file $(CONTRIB_BINDIR); \
done
2000-06-16 02:55:34 +08:00
install_example:
for inst_file in $(EXAMPLES); do \
$(INSTALL) $(INSTL_LIB_OPTS) $$inst_file $(CONTRIB_EXAMPLESDIR); \
done
2000-06-16 02:55:34 +08:00
depend dep:
$(CC) -MM -MG $(CFLAGS) *.c > depend
1999-06-06 04:07:54 +08:00
2000-06-16 02:55:34 +08:00
clean:
$(RM) *~ $(OBJS) $(MODS) $(PROGRAM) depend $(OTHER_CLEAN) core log
2000-06-16 02:55:34 +08:00
ifeq (depend,$(wildcard depend))
include depend
endif
-----------