1998-07-20 17:30:13 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
The PostgreSQL contrib tree
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
1998-07-20 17:30:13 +08:00
|
|
|
|
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"
|
1998-07-20 17:30:13 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
- in each directory must be Makefile, possible Makefile template
|
|
|
|
is below this text,
|
1998-07-20 17:30:13 +08:00
|
|
|
|
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
|
|
|
#
|
1999-11-30 07:26:18 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
TOPDIR=../..
|
1998-07-20 17:30:13 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
include ../Makefile.global
|
1998-07-20 17:30:13 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
NAME = some_name
|
1998-08-11 10:32:00 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
PROGRAM =
|
|
|
|
OBJS = $(NAME).o
|
|
|
|
DOCS = $(NAME).doc
|
|
|
|
SQLS = $(NAME).sql
|
|
|
|
BINS =
|
|
|
|
EXAMPLES=
|
|
|
|
MODS = $(NAME)$(DLSUFFIX)
|
1998-07-20 17:30:13 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
CFLAGS += -I. $(CFLAGS_SL)
|
1998-08-17 11:35:05 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
OTHER_CLEAN = $(SQLS)
|
2000-04-17 02:41:30 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
all: $(MODS) $(SQLS)
|
1998-07-20 17:30:13 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
%.sql: %.sql.in
|
|
|
|
$(SED) "s|MODULE_PATHNAME|$(CONTRIB_MODDIR)/$@|" < $< > $@
|
1998-07-20 17:30:13 +08:00
|
|
|
|
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
install: install_doc install_sql install_mod install_bin install_example
|
1998-07-20 17:30:13 +08:00
|
|
|
|
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
|
1998-07-20 17:30:13 +08:00
|
|
|
|
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-12 12:01:52 +08:00
|
|
|
|
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
|
1998-07-20 17:30:13 +08:00
|
|
|
|
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
|
1998-07-20 17:30:13 +08:00
|
|
|
|
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
|
1998-07-20 17:30:13 +08:00
|
|
|
|
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
|
1998-07-20 17:30:13 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
ifeq (depend,$(wildcard depend))
|
|
|
|
include depend
|
|
|
|
endif
|
|
|
|
-----------
|
|
|
|
|