postgres/contrib/README

81 lines
1.5 KiB
Plaintext
Raw Normal View History

2000-06-15 22:55:34 +04:00
The PostgreSQL contrib tree
~~~~~~~~~~~~~~~~~~~~~~~~~~~
2000-06-15 22:55:34 +04:00
FIXME:
os2client
odbc
spi/preprocessor
tools
2000-06-15 22:55:34 +04:00
- in each directory must be Makefile, possible Makefile template
is below this text,
2000-06-15 22:55:34 +04:00
--------
#
# $Header: /cvsroot/pgsql/contrib/README,v 1.18 2000/06/15 18:54:29 momjian Exp $
#
2000-06-15 22:55:34 +04:00
TOPDIR=../..
2000-06-15 22:55:34 +04:00
include ../Makefile.global
2000-06-15 22:55:34 +04:00
NAME = some_name
2000-06-15 22:55:34 +04:00
PROGRAM =
OBJS = $(NAME).o
DOCS = $(NAME).doc
SQLS = $(NAME).sql
BINS =
EXAMPLES=
MODS = $(NAME)$(DLSUFFIX)
2000-06-15 22:55:34 +04:00
CFLAGS += -I. $(CFLAGS_SL)
2000-06-15 22:55:34 +04:00
OTHER_CLEAN = $(SQLS)
2000-06-15 22:55:34 +04:00
all: $(MODS) $(SQLS)
2000-06-15 22:55:34 +04:00
%.sql: %.sql.in
$(SED) "s|MODULE_PATHNAME|$(CONTRIB_MODDIR)/$@|" < $< > $@
2000-06-15 22:55:34 +04:00
install: install_doc install_sql install_mod install_bin install_example
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
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-15 22:55:34 +04:00
install_mod:
for inst_file in $(MODS); do \
$(INSTALL) $(INSTL_SHLIB_OPTS) $$inst_file $(CONTRIB_MODDIR); \
done
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
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
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
2000-06-15 22:55:34 +04:00
ifeq (depend,$(wildcard depend))
include depend
endif
-----------