Update obsolete comment in index_drop(). When the comment was written,
[PostgreSQL.git] / src / backend / catalog / Makefile
blob400ae803f2c266d861081e8e15452049268fe985
1 #-------------------------------------------------------------------------
3 # Makefile for backend/catalog
5 # $PostgreSQL$
7 #-------------------------------------------------------------------------
9 subdir = src/backend/catalog
10 top_builddir = ../../..
11 include $(top_builddir)/src/Makefile.global
13 OBJS = catalog.o dependency.o heap.o index.o indexing.o namespace.o aclchk.o \
14 pg_aggregate.o pg_constraint.o pg_conversion.o pg_depend.o pg_enum.o \
15 pg_inherits.o pg_largeobject.o pg_namespace.o pg_operator.o pg_proc.o \
16 pg_shdepend.o pg_type.o storage.o toasting.o
18 BKIFILES = postgres.bki postgres.description postgres.shdescription
20 include $(top_srcdir)/src/backend/common.mk
22 all: $(BKIFILES)
24 # Note: there are some undocumented dependencies on the ordering in which
25 # the catalog header files are assembled into postgres.bki. In particular,
26 # indexing.h had better be last, and toasting.h just before it.
28 POSTGRES_BKI_SRCS = $(addprefix $(top_srcdir)/src/include/catalog/,\
29 pg_proc.h pg_type.h pg_attribute.h pg_class.h \
30 pg_attrdef.h pg_constraint.h pg_inherits.h pg_index.h pg_operator.h \
31 pg_opfamily.h pg_opclass.h pg_am.h pg_amop.h pg_amproc.h \
32 pg_language.h pg_largeobject.h pg_aggregate.h pg_statistic.h \
33 pg_rewrite.h pg_trigger.h pg_listener.h pg_description.h pg_cast.h \
34 pg_enum.h pg_namespace.h pg_conversion.h pg_depend.h \
35 pg_database.h pg_tablespace.h pg_pltemplate.h \
36 pg_authid.h pg_auth_members.h pg_shdepend.h pg_shdescription.h \
37 pg_ts_config.h pg_ts_config_map.h pg_ts_dict.h \
38 pg_ts_parser.h pg_ts_template.h \
39 pg_foreign_data_wrapper.h pg_foreign_server.h pg_user_mapping.h \
40 toasting.h indexing.h \
43 pg_includes = $(sort -I$(top_srcdir)/src/include -I$(top_builddir)/src/include)
45 # see explanation in ../parser/Makefile
46 postgres.description: postgres.bki ;
48 postgres.shdescription: postgres.bki ;
50 postgres.bki: genbki.sh $(POSTGRES_BKI_SRCS) $(top_builddir)/src/include/pg_config_manual.h
51 AWK='$(AWK)' $(SHELL) $< $(pg_includes) --set-version=$(VERSION) -o postgres $(POSTGRES_BKI_SRCS)
53 .PHONY: install-data
54 install-data: $(BKIFILES) installdirs
55 $(INSTALL_DATA) postgres.bki '$(DESTDIR)$(datadir)/postgres.bki'
56 $(INSTALL_DATA) postgres.description '$(DESTDIR)$(datadir)/postgres.description'
57 $(INSTALL_DATA) postgres.shdescription '$(DESTDIR)$(datadir)/postgres.shdescription'
58 $(INSTALL_DATA) $(srcdir)/system_views.sql '$(DESTDIR)$(datadir)/system_views.sql'
59 $(INSTALL_DATA) $(srcdir)/information_schema.sql '$(DESTDIR)$(datadir)/information_schema.sql'
60 $(INSTALL_DATA) $(srcdir)/sql_features.txt '$(DESTDIR)$(datadir)/sql_features.txt'
62 installdirs:
63 $(mkinstalldirs) '$(DESTDIR)$(datadir)'
65 .PHONY: uninstall-data
66 uninstall-data:
67 rm -f $(addprefix '$(DESTDIR)$(datadir)'/, $(BKIFILES) system_views.sql information_schema.sql sql_features.txt)
69 clean:
70 rm -f $(BKIFILES)