@@ -50,141 +50,8 @@ OBJS = \
50
50
51
51
include $(top_srcdir ) /src/backend/common.mk
52
52
53
- # Note: the order of this list determines the order in which the catalog
54
- # header files are assembled into postgres.bki. BKI_BOOTSTRAP catalogs
55
- # must appear first, and pg_statistic before pg_statistic_ext_data, and
56
- # there are reputedly other, undocumented ordering dependencies.
57
- CATALOG_HEADERS := \
58
- pg_proc.h \
59
- pg_type.h \
60
- pg_attribute.h \
61
- pg_class.h \
62
- pg_attrdef.h \
63
- pg_constraint.h \
64
- pg_inherits.h \
65
- pg_index.h \
66
- pg_operator.h \
67
- pg_opfamily.h \
68
- pg_opclass.h \
69
- pg_am.h \
70
- pg_amop.h \
71
- pg_amproc.h \
72
- pg_language.h \
73
- pg_largeobject_metadata.h \
74
- pg_largeobject.h \
75
- pg_aggregate.h \
76
- pg_statistic.h \
77
- pg_statistic_ext.h \
78
- pg_statistic_ext_data.h \
79
- pg_rewrite.h \
80
- pg_trigger.h \
81
- pg_event_trigger.h \
82
- pg_description.h \
83
- pg_cast.h \
84
- pg_enum.h \
85
- pg_namespace.h \
86
- pg_conversion.h \
87
- pg_depend.h \
88
- pg_database.h \
89
- pg_db_role_setting.h \
90
- pg_tablespace.h \
91
- pg_authid.h \
92
- pg_auth_members.h \
93
- pg_shdepend.h \
94
- pg_shdescription.h \
95
- pg_ts_config.h \
96
- pg_ts_config_map.h \
97
- pg_ts_dict.h \
98
- pg_ts_parser.h \
99
- pg_ts_template.h \
100
- pg_extension.h \
101
- pg_foreign_data_wrapper.h \
102
- pg_foreign_server.h \
103
- pg_user_mapping.h \
104
- pg_foreign_table.h \
105
- pg_policy.h \
106
- pg_replication_origin.h \
107
- pg_default_acl.h \
108
- pg_init_privs.h \
109
- pg_seclabel.h \
110
- pg_shseclabel.h \
111
- pg_collation.h \
112
- pg_parameter_acl.h \
113
- pg_partitioned_table.h \
114
- pg_range.h \
115
- pg_transform.h \
116
- pg_sequence.h \
117
- pg_publication.h \
118
- pg_publication_namespace.h \
119
- pg_publication_rel.h \
120
- pg_subscription.h \
121
- pg_subscription_rel.h
122
-
123
- GENERATED_HEADERS := $(CATALOG_HEADERS:%.h=%_d.h ) schemapg.h syscache_ids.h syscache_info.h system_fk_info.h
124
-
125
- POSTGRES_BKI_SRCS := $(addprefix $(top_srcdir ) /src/include/catalog/, $(CATALOG_HEADERS ) )
126
-
127
- # The .dat files we need can just be listed alphabetically.
128
- POSTGRES_BKI_DATA = $(addprefix $(top_srcdir ) /src/include/catalog/,\
129
- pg_aggregate.dat \
130
- pg_am.dat \
131
- pg_amop.dat \
132
- pg_amproc.dat \
133
- pg_authid.dat \
134
- pg_cast.dat \
135
- pg_class.dat \
136
- pg_collation.dat \
137
- pg_conversion.dat \
138
- pg_database.dat \
139
- pg_language.dat \
140
- pg_namespace.dat \
141
- pg_opclass.dat \
142
- pg_operator.dat \
143
- pg_opfamily.dat \
144
- pg_proc.dat \
145
- pg_range.dat \
146
- pg_tablespace.dat \
147
- pg_ts_config.dat \
148
- pg_ts_config_map.dat \
149
- pg_ts_dict.dat \
150
- pg_ts_parser.dat \
151
- pg_ts_template.dat \
152
- pg_type.dat \
153
- )
154
-
155
- all : generated-header-symlinks
156
-
157
- .PHONY : generated-header-symlinks
158
-
159
- generated-header-symlinks : $(top_builddir ) /src/include/catalog/header-stamp
160
-
161
- # bki-stamp records the last time we ran genbki.pl. We don't rely on
162
- # the timestamps of the individual output files, because the Perl script
163
- # won't update them if they didn't change (to avoid unnecessary recompiles).
164
- # Technically, this should depend on Makefile.global which supplies
165
- # $(MAJORVERSION); but then genbki.pl would need to be re-run after every
166
- # configure run, even in distribution tarballs. So depending on configure.ac
167
- # instead is cheating a bit, but it will achieve the goal of updating the
168
- # version number when it changes.
169
- bki-stamp : genbki.pl Catalog.pm $(POSTGRES_BKI_SRCS ) $(POSTGRES_BKI_DATA ) $(top_srcdir ) /configure.ac $(top_srcdir ) /src/include/access/transam.h
170
- $(PERL ) $< --include-path=$(top_srcdir ) /src/include/ \
171
- --set-version=$(MAJORVERSION ) $(POSTGRES_BKI_SRCS )
172
- touch $@
173
-
174
- # The generated headers must all be symlinked into src/include/.
175
- # We use header-stamp to record that we've done this because the symlinks
176
- # themselves may appear older than bki-stamp.
177
- $(top_builddir ) /src/include/catalog/header-stamp : bki-stamp
178
- cd ' $(dir $@)' && for file in $( GENERATED_HEADERS) ; do \
179
- rm -f $$ file && $(LN_S ) " ../../../$( subdir) /$$ file" . ; \
180
- done
181
- touch $@
182
-
183
- # Note: installation of generated headers is handled elsewhere
184
53
.PHONY : install-data
185
- install-data : bki-stamp installdirs
186
- $(INSTALL_DATA ) postgres.bki ' $(DESTDIR)$(datadir)/postgres.bki'
187
- $(INSTALL_DATA ) system_constraints.sql ' $(DESTDIR)$(datadir)/system_constraints.sql'
54
+ install-data : installdirs
188
55
$(INSTALL_DATA ) $(srcdir ) /system_functions.sql ' $(DESTDIR)$(datadir)/system_functions.sql'
189
56
$(INSTALL_DATA ) $(srcdir ) /system_views.sql ' $(DESTDIR)$(datadir)/system_views.sql'
190
57
$(INSTALL_DATA ) $(srcdir ) /information_schema.sql ' $(DESTDIR)$(datadir)/information_schema.sql'
@@ -195,7 +62,4 @@ installdirs:
195
62
196
63
.PHONY : uninstall-data
197
64
uninstall-data :
198
- rm -f $(addprefix '$(DESTDIR )$(datadir ) '/, postgres.bki system_constraints.sql system_functions.sql system_views.sql information_schema.sql sql_features.txt)
199
-
200
- clean :
201
- rm -f bki-stamp postgres.bki system_constraints.sql $(GENERATED_HEADERS )
65
+ rm -f $(addprefix '$(DESTDIR )$(datadir ) '/, system_functions.sql system_views.sql information_schema.sql sql_features.txt)
0 commit comments