2000-06-15 22:55:34 +04:00
|
|
|
#
|
2001-06-19 01:38:02 +04:00
|
|
|
# $Header: /cvsroot/pgsql/contrib/fulltextindex/Attic/Makefile,v 1.10 2001/06/18 21:38:01 momjian Exp $
|
2000-06-15 22:55:34 +04:00
|
|
|
#
|
1998-07-19 22:26:41 +04:00
|
|
|
|
2000-07-09 17:14:19 +04:00
|
|
|
subdir = contrib/fulltextindex
|
|
|
|
top_builddir = ../..
|
|
|
|
include ../../src/Makefile.global
|
1998-07-19 22:26:41 +04:00
|
|
|
|
2000-07-09 17:14:19 +04:00
|
|
|
NAME := fti
|
|
|
|
SONAME := $(NAME)$(DLSUFFIX)
|
1998-07-19 22:26:41 +04:00
|
|
|
|
2001-02-20 22:20:30 +03:00
|
|
|
override CPPFLAGS := -I$(srcdir) $(CPPFLAGS)
|
2000-10-21 01:04:27 +04:00
|
|
|
override CFLAGS += $(CFLAGS_SL)
|
2001-06-19 01:38:02 +04:00
|
|
|
override DLLLIBS := $(BE_DLLLIBS) $(DLLLIBS)
|
1998-07-19 22:26:41 +04:00
|
|
|
|
2000-07-09 17:14:19 +04:00
|
|
|
all: $(SONAME) $(NAME).sql
|
1998-07-19 22:26:41 +04:00
|
|
|
|
2000-07-09 17:14:19 +04:00
|
|
|
$(NAME).sql: $(NAME).sql.in
|
|
|
|
sed -e 's:MODULE_PATHNAME:$(libdir)/contrib/$(SONAME):g' < $< > $@
|
2000-06-15 22:55:34 +04:00
|
|
|
|
2000-07-09 17:14:19 +04:00
|
|
|
install: all installdirs
|
|
|
|
$(INSTALL_SCRIPT) fti.pl $(bindir)
|
|
|
|
$(INSTALL_SHLIB) $(SONAME) $(libdir)/contrib
|
|
|
|
$(INSTALL_DATA) $(NAME).sql $(datadir)/contrib
|
|
|
|
$(INSTALL_DATA) README.$(NAME) $(docdir)/contrib
|
2000-06-15 22:55:34 +04:00
|
|
|
|
2000-07-09 17:14:19 +04:00
|
|
|
installdirs:
|
|
|
|
$(mkinstalldirs) $(bindir) $(libdir)/contrib $(datadir)/contrib $(docdir)/contrib
|
2000-06-15 22:55:34 +04:00
|
|
|
|
2000-07-09 17:14:19 +04:00
|
|
|
uninstall:
|
|
|
|
rm -f $(bindir)/fti.pl $(libdir)/contrib/$(SONAME) \
|
|
|
|
$(datadir)/contrib/$(NAME).sql $(docdir)/contrib/README.$(NAME)
|
2000-06-15 22:55:34 +04:00
|
|
|
|
2000-07-09 17:14:19 +04:00
|
|
|
clean distclean maintainer-clean:
|
|
|
|
rm -f $(SONAME) $(NAME).sql
|
2000-06-15 22:55:34 +04:00
|
|
|
|
|
|
|
depend dep:
|
|
|
|
$(CC) -MM -MG $(CFLAGS) *.c > depend
|
|
|
|
|
|
|
|
ifeq (depend,$(wildcard depend))
|
|
|
|
include depend
|
|
|
|
endif
|