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