2000-06-16 02:55:34 +08:00
|
|
|
#
|
2000-06-19 21:54:50 +08:00
|
|
|
# $Header: /cvsroot/pgsql/contrib/string/Attic/Makefile,v 1.10 2000/06/19 13:54:20 momjian Exp $
|
1997-11-06 05:38:25 +08:00
|
|
|
#
|
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
TOPDIR=../..
|
1997-11-06 05:38:25 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
include ../Makefile.global
|
1999-06-06 03:09:48 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
NAME = string_io
|
1997-11-06 05:38:25 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
PROGRAM =
|
|
|
|
OBJS = $(NAME).o
|
2000-06-19 21:54:50 +08:00
|
|
|
DOCS = README.$(NAME)
|
2000-06-16 02:55:34 +08:00
|
|
|
SQLS = $(NAME).sql
|
|
|
|
BINS =
|
|
|
|
EXAMPLES=
|
|
|
|
MODS = $(NAME)$(DLSUFFIX)
|
1998-08-31 03:37:51 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
CFLAGS += -I. $(CFLAGS_SL)
|
1997-11-06 05:38:25 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
OTHER_CLEAN = $(SQLS)
|
1997-11-06 05:38:25 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
all: $(MODS) $(SQLS)
|
1998-08-31 03:37:51 +08:00
|
|
|
|
1999-09-28 04:04:14 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
%.sql: %.sql.in
|
|
|
|
$(SED) "s|MODULE_PATHNAME|$(CONTRIB_MODDIR)/$@|" < $< > $@
|
1998-08-31 03:37:51 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
install: install_doc install_sql install_mod
|
1997-11-06 05:38:25 +08:00
|
|
|
|
2000-06-16 02:55:34 +08:00
|
|
|
install_doc:
|
|
|
|
for inst_file in $(DOCS); do \
|
2000-06-19 21:54:50 +08:00
|
|
|
$(INSTALL) $(INSTL_LIB_OPTS) $$inst_file $(CONTRIB_DOCDIR); \
|
2000-06-16 02:55:34 +08:00
|
|
|
done
|
1997-11-06 05:38:25 +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
|
1997-11-06 05:38:25 +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
|
1997-11-06 05:38:25 +08:00
|
|
|
|
|
|
|
depend dep:
|
2000-06-16 02:55:34 +08:00
|
|
|
$(CC) -MM -MG $(CFLAGS) *.c > depend
|
1997-11-06 05:38:25 +08:00
|
|
|
|
|
|
|
clean:
|
2000-06-16 02:55:34 +08:00
|
|
|
$(RM) *~ $(OBJS) $(MODS) $(PROGRAM) depend $(OTHER_CLEAN) core log
|
1997-11-06 05:38:25 +08:00
|
|
|
|
|
|
|
ifeq (depend,$(wildcard depend))
|
|
|
|
include depend
|
|
|
|
endif
|