1996-10-27 10:55:05 +01:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
2002-03-22 22:34:44 +01:00
|
|
|
# Makefile for backend/catalog
|
1996-10-27 10:55:05 +01:00
|
|
|
#
|
2009-02-09 21:57:59 +01:00
|
|
|
# $PostgreSQL: pgsql/src/backend/catalog/Makefile,v 1.69 2009/02/09 20:57:59 alvherre Exp $
|
1996-10-27 10:55:05 +01:00
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
2000-07-06 23:33:45 +02:00
|
|
|
subdir = src/backend/catalog
|
|
|
|
top_builddir = ../../..
|
2000-08-31 18:12:35 +02:00
|
|
|
include $(top_builddir)/src/Makefile.global
|
1996-10-27 10:55:05 +01:00
|
|
|
|
2002-07-12 20:43:19 +02:00
|
|
|
OBJS = catalog.o dependency.o heap.o index.o indexing.o namespace.o aclchk.o \
|
2007-04-02 05:49:42 +02:00
|
|
|
pg_aggregate.o pg_constraint.o pg_conversion.o pg_depend.o pg_enum.o \
|
2005-07-07 22:40:02 +02:00
|
|
|
pg_largeobject.o pg_namespace.o pg_operator.o pg_proc.o pg_shdepend.o \
|
2008-11-19 11:34:52 +01:00
|
|
|
pg_type.o storage.o toasting.o
|
1996-10-27 10:55:05 +01:00
|
|
|
|
2006-02-12 04:22:21 +01:00
|
|
|
BKIFILES = postgres.bki postgres.description postgres.shdescription
|
2000-06-05 09:16:13 +02:00
|
|
|
|
2008-02-19 11:30:09 +01:00
|
|
|
include $(top_srcdir)/src/backend/common.mk
|
1996-10-27 10:55:05 +01:00
|
|
|
|
2008-02-19 11:30:09 +01:00
|
|
|
all: $(BKIFILES)
|
1996-10-27 10:55:05 +01:00
|
|
|
|
2001-06-12 07:55:50 +02:00
|
|
|
# Note: there are some undocumented dependencies on the ordering in which
|
|
|
|
# the catalog header files are assembled into postgres.bki. In particular,
|
2006-07-31 03:16:38 +02:00
|
|
|
# indexing.h had better be last, and toasting.h just before it.
|
1996-10-27 10:55:05 +01:00
|
|
|
|
2007-02-09 16:56:00 +01:00
|
|
|
POSTGRES_BKI_SRCS = $(addprefix $(top_srcdir)/src/include/catalog/,\
|
2009-02-09 21:57:59 +01:00
|
|
|
pg_proc.h pg_type.h pg_attribute.h pg_class.h \
|
2006-12-23 01:43:13 +01:00
|
|
|
pg_attrdef.h pg_constraint.h pg_inherits.h pg_index.h pg_operator.h \
|
|
|
|
pg_opfamily.h pg_opclass.h pg_am.h pg_amop.h pg_amproc.h \
|
2001-06-12 07:55:50 +02:00
|
|
|
pg_language.h pg_largeobject.h pg_aggregate.h pg_statistic.h \
|
2002-07-19 01:11:32 +02:00
|
|
|
pg_rewrite.h pg_trigger.h pg_listener.h pg_description.h pg_cast.h \
|
2007-04-02 05:49:42 +02:00
|
|
|
pg_enum.h pg_namespace.h pg_conversion.h pg_depend.h \
|
2005-09-08 22:07:42 +02:00
|
|
|
pg_database.h pg_tablespace.h pg_pltemplate.h \
|
2006-02-12 04:22:21 +01:00
|
|
|
pg_authid.h pg_auth_members.h pg_shdepend.h pg_shdescription.h \
|
2007-08-21 03:11:32 +02:00
|
|
|
pg_ts_config.h pg_ts_config_map.h pg_ts_dict.h \
|
|
|
|
pg_ts_parser.h pg_ts_template.h \
|
2008-12-19 17:25:19 +01:00
|
|
|
pg_foreign_data_wrapper.h pg_foreign_server.h pg_user_mapping.h \
|
2006-07-31 03:16:38 +02:00
|
|
|
toasting.h indexing.h \
|
2000-07-06 23:33:45 +02:00
|
|
|
)
|
|
|
|
|
2007-02-09 16:56:00 +01:00
|
|
|
pg_includes = $(sort -I$(top_srcdir)/src/include -I$(top_builddir)/src/include)
|
2000-07-06 23:33:45 +02:00
|
|
|
|
2003-08-01 18:12:32 +02:00
|
|
|
# see explanation in ../parser/Makefile
|
|
|
|
postgres.description: postgres.bki ;
|
|
|
|
|
2006-02-12 04:22:21 +01:00
|
|
|
postgres.shdescription: postgres.bki ;
|
|
|
|
|
2007-02-06 10:16:08 +01:00
|
|
|
postgres.bki: genbki.sh $(POSTGRES_BKI_SRCS) $(top_builddir)/src/include/pg_config_manual.h
|
2004-01-04 06:57:21 +01:00
|
|
|
AWK='$(AWK)' $(SHELL) $< $(pg_includes) --set-version=$(VERSION) -o postgres $(POSTGRES_BKI_SRCS)
|
2000-07-06 23:33:45 +02:00
|
|
|
|
2002-12-14 01:24:35 +01:00
|
|
|
.PHONY: install-data
|
|
|
|
install-data: $(BKIFILES) installdirs
|
2005-12-09 22:19:36 +01:00
|
|
|
$(INSTALL_DATA) postgres.bki '$(DESTDIR)$(datadir)/postgres.bki'
|
|
|
|
$(INSTALL_DATA) postgres.description '$(DESTDIR)$(datadir)/postgres.description'
|
2006-02-12 04:22:21 +01:00
|
|
|
$(INSTALL_DATA) postgres.shdescription '$(DESTDIR)$(datadir)/postgres.shdescription'
|
2005-12-09 22:19:36 +01:00
|
|
|
$(INSTALL_DATA) $(srcdir)/system_views.sql '$(DESTDIR)$(datadir)/system_views.sql'
|
|
|
|
$(INSTALL_DATA) $(srcdir)/information_schema.sql '$(DESTDIR)$(datadir)/information_schema.sql'
|
|
|
|
$(INSTALL_DATA) $(srcdir)/sql_features.txt '$(DESTDIR)$(datadir)/sql_features.txt'
|
2000-07-06 23:33:45 +02:00
|
|
|
|
|
|
|
installdirs:
|
2005-12-09 22:19:36 +01:00
|
|
|
$(mkinstalldirs) '$(DESTDIR)$(datadir)'
|
2000-07-06 23:33:45 +02:00
|
|
|
|
2002-12-14 01:24:35 +01:00
|
|
|
.PHONY: uninstall-data
|
|
|
|
uninstall-data:
|
2005-12-09 22:19:36 +01:00
|
|
|
rm -f $(addprefix '$(DESTDIR)$(datadir)'/, $(BKIFILES) system_views.sql information_schema.sql sql_features.txt)
|
1996-10-27 10:55:05 +01:00
|
|
|
|
2004-06-18 08:14:31 +02:00
|
|
|
clean:
|
2008-02-19 11:30:09 +01:00
|
|
|
rm -f $(BKIFILES)
|