postgresql/contrib/isbn_issn/Makefile

55 lines
1006 B
Makefile
Raw Normal View History

#
2000-06-19 21:54:50 +08:00
# $Header: /cvsroot/pgsql/contrib/isbn_issn/Attic/Makefile,v 1.5 2000/06/19 13:53:36 momjian Exp $
#
2000-06-16 02:55:34 +08:00
TOPDIR=../..
2000-06-16 02:55:34 +08:00
include ../Makefile.global
2000-06-16 02:55:34 +08:00
NAME = isbn_issn
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)
2000-06-16 02:55:34 +08:00
CFLAGS += -I. $(CFLAGS_SL)
OTHER_CLEAN = $(SQLS)
all: $(MODS) $(SQLS)
%.sql: %.sql.in
$(SED) "s|MODULE_PATHNAME|$(CONTRIB_MODDIR)/$@|" < $< > $@
install: install_doc install_sql install_mod
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
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
depend dep:
$(CC) -MM -MG $(CFLAGS) *.c > depend
clean:
2000-06-16 02:55:34 +08:00
$(RM) *~ $(OBJS) $(MODS) $(PROGRAM) depend $(OTHER_CLEAN) core log
ifeq (depend,$(wildcard depend))
include depend
endif