postgres/contrib/fulltextindex/Makefile

59 lines
1.1 KiB
Makefile
Raw Normal View History

2000-06-15 22:55:34 +04:00
#
2000-07-04 20:17:21 +04:00
# $Header: /cvsroot/pgsql/contrib/fulltextindex/Attic/Makefile,v 1.6 2000/07/04 16:16:48 momjian Exp $
2000-06-15 22:55:34 +04:00
#
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 = fti
2000-06-15 22:55:34 +04:00
PROGRAM =
OBJS = $(NAME).o
2000-06-19 17:54:50 +04:00
DOCS = README.$(NAME)
2000-06-15 22:55:34 +04:00
SQLS = $(NAME).sql
BINS = fti.pl
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
2000-07-04 20:17:21 +04:00
$(SED) "s|MODULE_PATHNAME|$(CONTRIB_MODDIR)/$(@:.sql=$(DLSUFFIX))|" < $< > $@
2000-06-15 22:55:34 +04:00
install: install_doc install_sql install_mod install_bin
install_doc:
for inst_file in $(DOCS); do \
2000-06-19 17:54:50 +04:00
$(INSTALL) $(INSTL_LIB_OPTS) $$inst_file $(CONTRIB_DOCDIR); \
2000-06-15 22:55:34 +04:00
done
install_sql:
for inst_file in $(SQLS); do \
$(INSTALL) $(INSTL_LIB_OPTS) $$inst_file $(CONTRIB_SQLDIR); \
done
install_mod:
for inst_file in $(MODS); do \
$(INSTALL) $(INSTL_SHLIB_OPTS) $$inst_file $(CONTRIB_MODDIR); \
done
install_bin:
for inst_file in $(BINS); do \
$(INSTALL) $(INSTL_EXE_OPTS) $$inst_file $(CONTRIB_BINDIR); \
done
depend dep:
$(CC) -MM -MG $(CFLAGS) *.c > depend
clean:
$(RM) *~ $(OBJS) $(MODS) $(PROGRAM) depend $(OTHER_CLEAN) core log
ifeq (depend,$(wildcard depend))
include depend
endif