]>
Commit | Line | Data |
---|---|---|
b75a7d8f | 1 | ## Makefile.in for ICU data |
4388f060 | 2 | ## Copyright (c) 1999-2012, International Business Machines Corporation and |
b75a7d8f A |
3 | ## others. All Rights Reserved. |
4 | ||
5 | ## Source directory information | |
6 | srcdir = @srcdir@ | |
7 | top_srcdir = @top_srcdir@ | |
8 | ||
9 | # So that you have $(top_builddir)/config.status | |
10 | top_builddir = .. | |
11 | ||
12 | ## All the flags and other definitions are included here. | |
13 | include $(top_builddir)/icudefs.mk | |
14 | ||
15 | ## Build directory information | |
16 | # So that $(top_builddir)/$(subdir) ~= "here" | |
17 | subdir = data | |
18 | ||
19 | #lib icu data for link | |
374ca955 A |
20 | LIB_ICUDATA_NAME=$(LIBICU)$(DATA_STUBNAME)$(ICULIBSUFFIX) |
21 | LIB_STATIC_ICUDATA_NAME=$(LIBSICU)$(DATA_STUBNAME)$(ICULIBSUFFIX) | |
b75a7d8f | 22 | |
374ca955 A |
23 | # Allow Windows to override these options |
24 | ifeq ($(PKGDATA_OPTS),) | |
25 | PKGDATA_OPTS = -O $(top_builddir)/data/icupkg.inc | |
26 | endif | |
27 | ifeq ($(PKGDATA_VERSIONING),) | |
28 | PKGDATA_VERSIONING = -r $(SO_TARGET_VERSION) | |
29 | endif | |
30 | ||
31 | # This allows all the data to be in one directory | |
32 | ifeq ($(PKGDATA_MODE),dll) | |
33 | ICUPKGDATA_OUTDIR = $(LIBDIR) | |
34 | else | |
729e4ab9 A |
35 | ifeq ($(PKGDATA_MODE),static) |
36 | ICUPKGDATA_OUTDIR = $(LIBDIR) | |
37 | else | |
374ca955 A |
38 | ICUPKGDATA_OUTDIR = $(OUTDIR) |
39 | endif | |
729e4ab9 | 40 | endif |
b75a7d8f | 41 | |
374ca955 | 42 | CURDIR:=$(CURR_FULL_DIR) |
729e4ab9 A |
43 | # current directory should not be blank |
44 | ifeq ($(CURDIR),) | |
45 | CURDIR=. | |
46 | endif | |
47 | PKGDATA = $(TOOLBINDIR)/pkgdata $(PKGDATA_OPTS) -q -c -s $(CURDIR)/out/build/$(ICUDATA_PLATFORM_NAME) -d $(ICUPKGDATA_OUTDIR) | |
4388f060 | 48 | OS390_PDS_NAME = -z -L $(BATCH_STUB_TARGET) |
374ca955 | 49 | |
73c04bcf A |
50 | ifeq ($(OS390_STUBDATA),1) |
51 | OS390PKG=package390 | |
52 | OS390INSTALL=install390 | |
53 | ||
54 | # Additional data for 390 | |
55 | OS390LIST=$(OUTTMPDIR)/icudata390.lst | |
56 | OUTTMPDIR_390STUB=$(top_builddir)/data/out/tmp_390stub | |
57 | endif | |
b75a7d8f | 58 | |
51004dcb A |
59 | ifeq ($(OS390BATCH),1) |
60 | CPPFLAGS += -Wc,'ros,roc' | |
61 | endif | |
62 | ||
b75a7d8f A |
63 | # OBJDATADIR must be a short path (with ..'s) to the data. |
64 | ||
374ca955 A |
65 | ifeq ($(top_srcdir),..) |
66 | SRCDATADIR=. | |
67 | else | |
b75a7d8f | 68 | SRCDATADIR=$(top_srcdir)/data |
374ca955 A |
69 | endif |
70 | ifeq ($(top_builddir),..) | |
71 | OUTDIR=./out | |
72 | else | |
b75a7d8f | 73 | OUTDIR=$(top_builddir)/data/out |
374ca955 A |
74 | endif |
75 | ||
76 | OUTTMPDIR=$(OUTDIR)/tmp | |
73c04bcf A |
77 | MAINBUILDDIR=$(OUTDIR)/build |
78 | BUILDDIR=$(MAINBUILDDIR)/$(ICUDATA_PLATFORM_NAME) | |
b75a7d8f A |
79 | UNICODEDATADIR=$(SRCDATADIR)/unidata |
80 | LOCSRCDIR=$(SRCDATADIR)/locales | |
729e4ab9 A |
81 | CURRSRCDIR=$(SRCDATADIR)/curr |
82 | CURRBLDDIR=$(BUILDDIR)/curr | |
83 | LANGSRCDIR=$(SRCDATADIR)/lang | |
84 | LANGBLDDIR=$(BUILDDIR)/lang | |
85 | REGIONSRCDIR=$(SRCDATADIR)/region | |
86 | REGIONBLDDIR=$(BUILDDIR)/region | |
87 | ZONESRCDIR=$(SRCDATADIR)/zone | |
88 | ZONEBLDDIR=$(BUILDDIR)/zone | |
374ca955 A |
89 | COLSRCDIR=$(SRCDATADIR)/coll |
90 | COLBLDDIR=$(BUILDDIR)/coll | |
91 | RBNFSRCDIR=$(SRCDATADIR)/rbnf | |
92 | RBNFBLDDIR=$(BUILDDIR)/rbnf | |
93 | TRANSLITSRCDIR=$(SRCDATADIR)/translit | |
94 | TRANSLITBLDDIR=$(BUILDDIR)/translit | |
95 | MISCSRCDIR=$(SRCDATADIR)/misc | |
b75a7d8f | 96 | BRKSRCDIR=$(SRCDATADIR)/brkitr |
73c04bcf | 97 | BRKBLDDIR=$(BUILDDIR)/brkitr |
b75a7d8f A |
98 | MISCSRCDIR=$(SRCDATADIR)/misc |
99 | UCMSRCDIR=$(SRCDATADIR)/mappings | |
729e4ab9 | 100 | SPREPSRCDIR=$(SRCDATADIR)/sprep |
b75a7d8f A |
101 | COMINCDIR=$(top_srcdir)/common/unicode |
102 | SRCLISTDEPS=Makefile $(srcdir)/Makefile.in | |
729e4ab9 | 103 | BUILD_DIRS=$(OUTDIR) $(MAINBUILDDIR) $(BUILDDIR) $(CURRBLDDIR) $(LANGBLDDIR) $(REGIONBLDDIR) $(ZONEBLDDIR) $(BRKBLDDIR) $(COLBLDDIR) $(RBNFBLDDIR) $(TRANSLITBLDDIR) $(OUTTMPDIR) $(OUTTMPDIR_390STUB) $(OUTTMPDIR)/$(CURR_TREE) $(OUTTMPDIR)/$(LANG_TREE) $(OUTTMPDIR)/$(REGION_TREE) $(OUTTMPDIR)/$(ZONE_TREE) $(OUTTMPDIR)/$(COLLATION_TREE) $(OUTTMPDIR)/$(RBNF_TREE) $(OUTTMPDIR)/$(TRANSLIT_TREE) $(OUTTMPDIR)/$(BREAK_TREE) |
b75a7d8f A |
104 | |
105 | # relative lib links from pkgdata are the same as for tmp | |
106 | TOOLDIR=$(top_builddir)/tools | |
107 | ||
108 | ## List of phony targets | |
374ca955 | 109 | .PHONY : all all-local all-recursive install install-local install-files \ |
b75a7d8f A |
110 | install-recursive clean clean-local clean-recursive distclean \ |
111 | distclean-local distclean-recursive dist dist-local dist-recursive \ | |
4388f060 A |
112 | check check-local check-recursive build-local clean-resindex build-dir icudata.jar \ |
113 | check-exhaustive | |
b75a7d8f A |
114 | |
115 | ## Clear suffix list | |
116 | .SUFFIXES : | |
117 | ||
118 | ## List of standard targets | |
119 | all: all-local | |
120 | install: all-local install-local | |
121 | clean: clean-local | |
122 | distclean : distclean-local | |
123 | dist: | |
124 | check: all | |
125 | ||
4388f060 A |
126 | check-exhaustive: check |
127 | ||
729e4ab9 A |
128 | -include Makefile.local |
129 | ||
b75a7d8f A |
130 | |
131 | distclean-local: clean | |
132 | $(RMV) Makefile | |
133 | ||
374ca955 | 134 | all-local: build-dir icupkg.inc build-local packagedata $(POST_DATA_BUILD) $(OS390PKG) |
b75a7d8f A |
135 | |
136 | dist-local: | |
137 | ||
138 | clean-map: | |
139 | -test -z *.map || $(RMV) *.map | |
140 | ||
141 | clean-local: cleanpackage cleanfiles clean-map | |
b75a7d8f A |
142 | |
143 | cleanfiles: | |
144 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) | |
145 | ||
146 | cleanpackage: | |
147 | $(RMV) $(OUTDIR) | |
374ca955 | 148 | $(RMV) $(LIBDIR)/$(LIB_ICUDATA_NAME)*.$(SO)* $(LIBDIR)/$(LIB_STATIC_ICUDATA_NAME).$(A) |
b75a7d8f A |
149 | |
150 | check-local: | |
151 | ||
73c04bcf A |
152 | # Find out if we have a source archive. |
153 | # If we have that, then use that instead of building everything from scratch. | |
154 | ICUDATA_SOURCE_ARCHIVE = $(wildcard $(srcdir)/in/$(ICUDATA_PLATFORM_NAME).dat) | |
155 | ifeq ($(ICUDATA_SOURCE_ARCHIVE),) | |
156 | ICUDATA_ARCHIVE = $(firstword $(wildcard $(srcdir)/in/$(ICUDATA_BASENAME_VERSION)*.dat)) | |
157 | # We don't have the data in the current endianess or charset. | |
158 | # See if we can find data of any archive type, | |
159 | # and convert it to the current type. | |
160 | ifneq ($(ICUDATA_ARCHIVE),) | |
161 | ICUDATA_SOURCE_ARCHIVE = $(OUTDIR)/$(ICUDATA_PLATFORM_NAME).dat | |
162 | $(ICUDATA_SOURCE_ARCHIVE): $(ICUDATA_ARCHIVE) $(OUTDIR) | |
729e4ab9 | 163 | $(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $(ICUDATA_ARCHIVE) $(ICUDATA_SOURCE_ARCHIVE) |
73c04bcf A |
164 | endif |
165 | else | |
166 | ifneq ($(ENABLE_STATIC),YES) | |
167 | ifeq ($(PKGDATA_MODE),common) | |
168 | # We have a source data common archive in the native endianess, | |
169 | # and it's what we want to build. Try to not run any of ICU's tools. | |
170 | ICUDATA_SOURCE_IS_NATIVE_TARGET=YES | |
171 | endif | |
172 | endif | |
173 | endif | |
174 | ||
46f4442e | 175 | packagedata: icupkg.inc $(PKGDATA_LIST) build-local |
b75a7d8f | 176 | ifneq ($(ENABLE_STATIC),) |
46f4442e | 177 | ifeq ($(PKGDATA_MODE),dll) |
729e4ab9 | 178 | $(PKGDATA_INVOKE) $(PKGDATA) -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -p $(ICUDATA_NAME) $(PKGDATA_LIBSTATICNAME) -m static $(PKGDATA_VERSIONING) $(PKGDATA_LIST) |
46f4442e | 179 | endif |
b75a7d8f | 180 | endif |
73c04bcf | 181 | ifneq ($(ICUDATA_SOURCE_IS_NATIVE_TARGET),YES) |
46f4442e | 182 | $(PKGDATA_INVOKE) $(PKGDATA) -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -p $(ICUDATA_NAME) -m $(PKGDATA_MODE) $(PKGDATA_VERSIONING) $(PKGDATA_LIBNAME) $(PKGDATA_LIST) |
4388f060 A |
183 | ifeq ($(OS390BATCH),1) |
184 | $(PKGDATA_INVOKE) $(PKGDATA) -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -p $(ICUDATA_NAME) -m $(PKGDATA_MODE) $(PKGDATA_VERSIONING) $(OS390_PDS_NAME) $(PKGDATA_LIST) | |
185 | endif | |
73c04bcf A |
186 | else |
187 | $(INSTALL_DATA) $(ICUDATA_SOURCE_ARCHIVE) $(OUTDIR) | |
188 | endif | |
b75a7d8f A |
189 | |
190 | ## Install ICU data. | |
46f4442e | 191 | install-local: $(PKGDATA_LIST) ./icupkg.inc packagedata $(OS390INSTALL) |
b75a7d8f | 192 | $(MKINSTALLDIRS) $(TMPDATADIR) $(DESTDIR)$(ICUPKGDATA_DIR) |
729e4ab9 A |
193 | ifeq ($(PKGDATA_MODE),files) |
194 | $(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME) | |
195 | $(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(CURR_TREE) | |
196 | $(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(LANG_TREE) | |
197 | $(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(REGION_TREE) | |
198 | $(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(ZONE_TREE) | |
199 | $(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(BREAK_TREE) | |
200 | $(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(COLLATION_TREE) | |
201 | $(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(RBNF_TREE) | |
202 | $(MKINSTALLDIRS) $(ICUPKGDATA_DIR)/$(ICUDATA_NAME)/$(TRANSLIT_TREE) | |
203 | endif | |
b75a7d8f | 204 | ifneq ($(ENABLE_STATIC),) |
46f4442e A |
205 | ifeq ($(PKGDATA_MODE),dll) |
206 | $(PKGDATA_INVOKE) $(PKGDATA) -m static -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -s $(BUILDDIR) -p $(ICUDATA_NAME) $(PKGDATA_LIBSTATICNAME) $(PKGDATA_LIST) -I $(ICUPKGDATA_INSTALL_LIBDIR) | |
207 | endif | |
b75a7d8f | 208 | endif |
73c04bcf | 209 | ifneq ($(ICUDATA_SOURCE_IS_NATIVE_TARGET),YES) |
46f4442e | 210 | $(PKGDATA_INVOKE) $(PKGDATA) -m $(PKGDATA_MODE) $(PKGDATA_VERSIONING) -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -s $(BUILDDIR) -p $(ICUDATA_NAME) $(PKGDATA_LIBNAME) $(PKGDATA_LIST) -I $(ICUPKGDATA_INSTALL_DIR) |
73c04bcf A |
211 | else |
212 | $(INSTALL_DATA) $(ICUDATA_SOURCE_ARCHIVE) $(DESTDIR)$(ICUPKGDATA_DIR) | |
213 | endif | |
b75a7d8f | 214 | |
b75a7d8f A |
215 | |
216 | #### | |
217 | #### | |
218 | #### 390 support | |
374ca955 | 219 | install390: package390 |
b75a7d8f | 220 | $(MKINSTALLDIRS) $(TMPDATADIR) $(DESTDIR)$(libdir) |
374ca955 | 221 | $(INVOKE) $(PKGDATA) -s $(BUILDDIR)$(STUB_SUFFIX) -T $(OUTTMPDIR_390STUB) -p $(ICUDATA_NAME)$(STUB_SUFFIX) $(PKGDATA_LIBNAME)$(STUB_SUFFIX) -e $(ICUDATA_ENTRY_POINT) $(OS390LIST) -m dll $(PKGDATA_VERSIONING) -I $(DESTDIR)$(ICUPKGDATA_DIR) |
b75a7d8f | 222 | ifeq ($(PKGDATA_MODE),dll) |
729e4ab9 | 223 | $(INSTALL-L) $(ICUPKGDATA_OUTDIR)/$(FINAL_IMPORT_LIB) $(DESTDIR)$(ICUPKGDATA_DIR)/$(FINAL_IMPORT_LIB) |
b75a7d8f A |
224 | endif |
225 | ||
374ca955 | 226 | #### $(LIB_ICUDATA_NAME)$(STUB_SUFFIX) is the subset data for batch mode |
46f4442e | 227 | package390: $(OUTTMPDIR)/icudata390.lst $(PKGDATA_LIST) ./icupkg.inc packagedata |
374ca955 A |
228 | ln -s $(ICUDATA_NAME) $(OUTDIR)/build/$(ICUDATA_NAME)$(STUB_SUFFIX) |
229 | $(INVOKE) $(PKGDATA) -s $(BUILDDIR)$(STUB_SUFFIX) -T $(OUTTMPDIR_390STUB) -p $(ICUDATA_NAME)$(STUB_SUFFIX) $(PKGDATA_LIBNAME)$(STUB_SUFFIX) -e $(ICUDATA_ENTRY_POINT) $(OS390LIST) -m dll $(PKGDATA_VERSIONING) | |
230 | cp $(ICUPKGDATA_OUTDIR)/$(LIB_ICUDATA_NAME)$(STUB_SUFFIX).$(SO) $(top_builddir)/stubdata/$(LIB_ICUDATA_NAME)$(STUB_SUFFIX).$(SO) | |
b75a7d8f A |
231 | |
232 | ||
233 | ##### Define all the data files. the build rule that depends on them is below. | |
374ca955 A |
234 | # X_FILES_SHORT = just the base names (for lists) |
235 | # X_FILES = full paths (for dependency) | |
b75a7d8f A |
236 | |
237 | ## DAT files - Misc. data files. | |
73c04bcf A |
238 | # 2005-may-05 Removed Unicode properties files (unorm.icu, uprops.icu, ucase.icu, ubidi.icu) |
239 | # from data build. See Jitterbug 4497. (makedata.mak revision 1.117) | |
4388f060 A |
240 | # 2010-dec Removed pnames.icu. |
241 | # These are now hardcoded in ICU4C and only loaded in ICU4J. | |
73c04bcf | 242 | # |
4388f060 | 243 | DAT_FILES_SHORT=unames.icu cnvalias.icu coll/ucadata.icu coll/invuca.icu nfc.nrm nfkc.nrm nfkc_cf.nrm uts46.nrm |
374ca955 | 244 | DAT_FILES=$(DAT_FILES_SHORT:%=$(BUILDDIR)/%) |
b75a7d8f A |
245 | |
246 | ## BRK files | |
73c04bcf | 247 | BREAK_TREE=brkitr |
374ca955 A |
248 | -include $(BRKSRCDIR)/brkfiles.mk |
249 | -include $(BRKSRCDIR)/brklocal.mk | |
73c04bcf A |
250 | ALL_BRK_SOURCE= $(BRK_SOURCE) $(BRK_SOURCE_LOCAL) |
251 | BRK_FILES_SHORT=$(ALL_BRK_SOURCE:%.txt=$(BREAK_TREE)/%.brk) | |
252 | BRK_FILES=$(ALL_BRK_SOURCE:%.txt=$(BRKBLDDIR)/%.brk) | |
51004dcb A |
253 | ifdef BRK_DICT_SOURCE |
254 | ALL_DICT_SOURCE=$(BRK_DICT_SOURCE) $(BRK_DICT_SOURCE_LOCAL) | |
255 | DICT_FILES_SHORT=$(ALL_DICT_SOURCE:%.txt=$(BREAK_TREE)/%.dict) | |
256 | DICT_FILES=$(ALL_DICT_SOURCE:%.txt=$(BRKBLDDIR)/%.dict) | |
73c04bcf A |
257 | endif |
258 | ifdef BRK_RES_SOURCE | |
259 | BRS_SRC= root.txt $(BRK_RES_SOURCE) $(BRK_RES_SOURCE_LOCAL) | |
260 | BRS_SRC_FILES = $(BRS_SRC:%=$(BRKSRCDIR)/%) | |
261 | INSTALLED_BRS_FILES = $(BRK_RES_SOURCE:%.txt=%) $(BRK_RES_SOURCE_LOCAL:%.txt=%) | |
262 | endif | |
b75a7d8f | 263 | |
729e4ab9 A |
264 | ## Confusables (Spoofing) files |
265 | ALL_CFU_SOURCE=$(UNICODEDATADIR)/confusables.txt $(UNICODEDATADIR)/confusablesWholeScript.txt | |
266 | CFU_FILES_SHORT=confusables.cfu | |
267 | CFU_FILES=$(BUILDDIR)/$(CFU_FILES_SHORT) | |
268 | ||
374ca955 | 269 | ## UCM files |
b75a7d8f A |
270 | -include $(UCMSRCDIR)/ucmcore.mk |
271 | -include $(UCMSRCDIR)/ucmfiles.mk | |
272 | -include $(UCMSRCDIR)/ucmebcdic.mk | |
273 | -include $(UCMSRCDIR)/ucmlocal.mk | |
274 | ALL_UCM_SOURCE=ibm-37_P100-1995.ucm ibm-1047_P100-1995.ucm $(UCM_SOURCE_CORE) $(UCM_SOURCE_FILES) $(UCM_SOURCE_EBCDIC) $(UCM_SOURCE_LOCAL) | |
275 | UCM_FILES = $(ALL_UCM_SOURCE:%=$(SRCDATADIR)/%) | |
374ca955 A |
276 | CNV_FILES = $(ALL_UCM_SOURCE:%.ucm=$(BUILDDIR)/%.cnv) |
277 | CNV_FILES_SHORT = $(ALL_UCM_SOURCE:%.ucm=%.cnv) | |
729e4ab9 A |
278 | UCM_SOURCE_SPECIAL=$(UCM_SOURCE_EBCDIC_IGNORE_SISO) $(UCM_SOURCE_EBCDIC_IGNORE_SISO_LOCAL) |
279 | UCM_FILES_SPECIAL=$(UCM_SOURCE_SPECIAL:%=$(UCMSRCDIR)/%) | |
280 | CNV_FILES_SPECIAL=$(UCM_SOURCE_SPECIAL:%.ucm=$(BUILDDIR)/%.cnv) | |
281 | CNV_FILES_SHORT_SPECIAL=$(UCM_SOURCE_SPECIAL:%.ucm=%.cnv) | |
b75a7d8f A |
282 | |
283 | ## RES files | |
284 | -include $(LOCSRCDIR)/resfiles.mk | |
729e4ab9 A |
285 | -include $(CURRSRCDIR)/resfiles.mk |
286 | -include $(LANGSRCDIR)/resfiles.mk | |
287 | -include $(REGIONSRCDIR)/resfiles.mk | |
288 | -include $(ZONESRCDIR)/resfiles.mk | |
374ca955 A |
289 | -include $(COLSRCDIR)/colfiles.mk |
290 | -include $(RBNFSRCDIR)/rbnffiles.mk | |
291 | -include $(TRANSLITSRCDIR)/trnsfiles.mk | |
b75a7d8f | 292 | -include $(LOCSRCDIR)/reslocal.mk |
729e4ab9 A |
293 | -include $(CURRSRCDIR)/reslocal.mk |
294 | -include $(LANGSRCDIR)/reslocal.mk | |
295 | -include $(REGIONSRCDIR)/reslocal.mk | |
296 | -include $(ZONESRCDIR)/reslocal.mk | |
374ca955 | 297 | -include $(COLSRCDIR)/collocal.mk |
73c04bcf | 298 | -include $(BRKSRCDIR)/brslocal.mk |
374ca955 | 299 | -include $(RBNFSRCDIR)/rbnflocal.mk |
73c04bcf A |
300 | -include $(TRANSLITSRCDIR)/trnslocal.mk |
301 | ifdef GENRB_SOURCE | |
46f4442e | 302 | RES_SRC= root.txt $(GENRB_SOURCE) $(GENRB_ALIAS_SOURCE) $(GENRB_SOURCE_LOCAL) $(GENRB_ALIAS_SOURCE_LOCAL) |
374ca955 | 303 | RES_SRC_FILES = $(RES_SRC:%=$(LOCSRCDIR)/%) |
b75a7d8f | 304 | INSTALLED_RB_FILES = $(GENRB_SOURCE:%.txt=%) $(GENRB_SOURCE_LOCAL:%.txt=%) |
73c04bcf | 305 | endif |
729e4ab9 A |
306 | ifdef CURR_SOURCE |
307 | CURR_SRC= root.txt supplementalData.txt $(CURR_SOURCE) $(CURR_ALIAS_SOURCE) $(CURR_SOURCE_LOCAL) | |
308 | CURR_SRC_FILES = $(CURR_SRC:%=$(CURRSRCDIR)/%) | |
309 | INSTALLED_CURR_FILES = $(CURR_SOURCE:%.txt=%) $(CURR_SOURCE_LOCAL:%.txt=%) | |
310 | endif | |
311 | ifdef LANG_SOURCE | |
312 | LANG_SRC= root.txt $(LANG_SOURCE) $(LANG_ALIAS_SOURCE) $(LANG_SOURCE_LOCAL) | |
313 | LANG_SRC_FILES = $(LANG_SRC:%=$(LANGSRCDIR)/%) | |
314 | INSTALLED_LANG_FILES = $(LANG_SOURCE:%.txt=%) $(LANG_SOURCE_LOCAL:%.txt=%) | |
315 | endif | |
316 | ifdef REGION_SOURCE | |
317 | REGION_SRC= root.txt $(REGION_SOURCE) $(REGION_ALIAS_SOURCE) $(REGION_SOURCE_LOCAL) | |
318 | REGION_SRC_FILES = $(REGION_SRC:%=$(REGIONSRCDIR)/%) | |
319 | INSTALLED_REGION_FILES = $(REGION_SOURCE:%.txt=%) $(REGION_SOURCE_LOCAL:%.txt=%) | |
320 | endif | |
321 | ifdef ZONE_SOURCE | |
322 | ZONE_SRC= root.txt $(ZONE_SOURCE) $(ZONE_ALIAS_SOURCE) $(ZONE_SOURCE_LOCAL) | |
323 | ZONE_SRC_FILES = $(ZONE_SRC:%=$(ZONESRCDIR)/%) | |
324 | INSTALLED_ZONE_FILES = $(ZONE_SOURCE:%.txt=%) $(ZONE_SOURCE_LOCAL:%.txt=%) | |
325 | endif | |
73c04bcf | 326 | ifdef COLLATION_SOURCE |
374ca955 A |
327 | COL_SRC= root.txt $(COLLATION_SOURCE) $(COLLATION_ALIAS_SOURCE) $(COLLATION_SOURCE_LOCAL) |
328 | COL_SRC_FILES = $(COL_SRC:%=$(COLSRCDIR)/%) | |
329 | INSTALLED_COL_FILES = $(COLLATION_SOURCE:%.txt=%) $(COLLATION_SOURCE_LOCAL:%.txt=%) | |
73c04bcf A |
330 | endif |
331 | ifdef RBNF_SOURCE | |
374ca955 A |
332 | RBNF_SRC= root.txt $(RBNF_SOURCE) $(RBNF_ALIAS_SOURCE) $(RBNF_SOURCE_LOCAL) |
333 | RBNF_SRC_FILES = $(RBNF_SRC:%=$(RBNFSRCDIR)/%) | |
334 | INSTALLED_RBNF_FILES = $(RBNF_SOURCE:%.txt=%) $(RBNF_SOURCE_LOCAL:%.txt=%) | |
73c04bcf A |
335 | endif |
336 | ifdef TRANSLIT_SOURCE | |
337 | TRANSLIT_SRC= $(TRANSLIT_SOURCE) $(TRANSLIT_ALIAS_SOURCE) $(TRANSLIT_SOURCE_LOCAL) | |
374ca955 A |
338 | TRANSLIT_SRC_FILES = $(TRANSLIT_SRC:%=$(TRANSLITSRCDIR)/%) |
339 | INSTALLED_TRANSLIT_FILES = $(TRANSLIT_SOURCE:%.txt=%) $(TRANSLIT_SOURCE_LOCAL:%.txt=%) | |
73c04bcf | 340 | endif |
374ca955 A |
341 | GENRBOPTS=-k |
342 | ||
343 | ## MISC files | |
344 | -include $(MISCSRCDIR)/miscfiles.mk | |
345 | -include $(MISCSRCDIR)/misclocal.mk | |
729e4ab9 | 346 | MSC_SOURCE= $(MISC_SOURCE) $(MISC_SOURCE_LOCAL) |
374ca955 A |
347 | MSC_SRC_FILES=$(MSC_SOURCE:%=$(MISCSRCDIR)/%) |
348 | ||
349 | ifeq ($(ENABLE_SO_VERSION_DATA),1) | |
350 | ifeq ($(PKGDATA_MODE),dll) | |
351 | SO_VERSION_DATA = $(OUTTMPDIR)/icudata.res | |
352 | $(SO_VERSION_DATA) : $(MISCSRCDIR)/icudata.rc | |
4388f060 | 353 | rc.exe /i$(srcdir)/../common /i$(top_builddir)/common /fo$@ $(CPPFLAGS) $(SOURCE_FILE) |
374ca955 A |
354 | endif |
355 | endif | |
b75a7d8f | 356 | |
729e4ab9 A |
357 | INDEX_NAME=res_index |
358 | INDEX_FILE=$(OUTTMPDIR)/$(INDEX_NAME).txt | |
359 | ||
374ca955 | 360 | ALL_RES_SRC= $(RES_SRC) $(TRNS_SOURCE) $(MSC_SOURCE) |
729e4ab9 A |
361 | RES_FILES = $(ALL_RES_SRC:%.txt=$(BUILDDIR)/%.res) $(BUILDDIR)/$(INDEX_NAME).res $(BUILDDIR)/pool.res |
362 | RES_FILES_SHORT = $(ALL_RES_SRC:%.txt=%.res) $(INDEX_NAME).res pool.res | |
46f4442e | 363 | PKGDATA_LIST = $(OUTTMPDIR)/icudata.lst |
374ca955 | 364 | |
729e4ab9 A |
365 | CURR_TREE=curr |
366 | CURR_INDEX_FILE=$(OUTTMPDIR)/$(CURR_TREE)/$(INDEX_NAME).txt | |
367 | CURR_FILES = $(CURR_SRC:%.txt=$(CURRBLDDIR)/%.res) $(CURRBLDDIR)/$(INDEX_NAME).res $(CURRBLDDIR)/pool.res | |
368 | CURR_FILES_SHORT = $(CURR_SRC:%.txt=$(CURR_TREE)/%.res) $(CURR_TREE)/$(INDEX_NAME).res $(CURR_TREE)/pool.res | |
369 | ||
370 | LANG_TREE=lang | |
371 | LANG_INDEX_FILE=$(OUTTMPDIR)/$(LANG_TREE)/$(INDEX_NAME).txt | |
372 | LANG_FILES = $(LANG_SRC:%.txt=$(LANGBLDDIR)/%.res) $(LANGBLDDIR)/$(INDEX_NAME).res $(LANGBLDDIR)/pool.res | |
373 | LANG_FILES_SHORT = $(LANG_SRC:%.txt=$(LANG_TREE)/%.res) $(LANG_TREE)/$(INDEX_NAME).res $(LANG_TREE)/pool.res | |
374 | ||
375 | REGION_TREE=region | |
376 | REGION_INDEX_FILE=$(OUTTMPDIR)/$(REGION_TREE)/$(INDEX_NAME).txt | |
377 | REGION_FILES = $(REGION_SRC:%.txt=$(REGIONBLDDIR)/%.res) $(REGIONBLDDIR)/$(INDEX_NAME).res $(REGIONBLDDIR)/pool.res | |
378 | REGION_FILES_SHORT = $(REGION_SRC:%.txt=$(REGION_TREE)/%.res) $(REGION_TREE)/$(INDEX_NAME).res $(REGION_TREE)/pool.res | |
379 | ||
380 | ZONE_TREE=zone | |
381 | ZONE_INDEX_FILE=$(OUTTMPDIR)/$(ZONE_TREE)/$(INDEX_NAME).txt | |
382 | ZONE_FILES = $(ZONE_SRC:%.txt=$(ZONEBLDDIR)/%.res) $(ZONEBLDDIR)/$(INDEX_NAME).res $(ZONEBLDDIR)/pool.res | |
383 | ZONE_FILES_SHORT = $(ZONE_SRC:%.txt=$(ZONE_TREE)/%.res) $(ZONE_TREE)/$(INDEX_NAME).res $(ZONE_TREE)/pool.res | |
374ca955 A |
384 | |
385 | COLLATION_TREE=coll | |
386 | COLLATION_INDEX_FILE=$(OUTTMPDIR)/$(COLLATION_TREE)/$(INDEX_NAME).txt | |
387 | COLLATION_INDEX_RES=$(COLBLDDIR)/$(INDEX_NAME).res | |
388 | COLLATION_INDEX_RES_SHORT=$(COLLATION_TREE)/$(INDEX_NAME).res | |
389 | COLLATION_FILES = $(COL_SRC:%.txt=$(COLBLDDIR)/%.res) $(COLLATION_INDEX_RES) | |
390 | COLLATION_FILES_SHORT = $(COL_SRC:%.txt=$(COLLATION_TREE)/%.res) | |
391 | ||
73c04bcf A |
392 | BRK_RES_INDEX_FILE=$(OUTTMPDIR)/$(BREAK_TREE)/$(INDEX_NAME).txt |
393 | BRK_RES_INDEX_RES=$(BRKBLDDIR)/$(INDEX_NAME).res | |
394 | BRK_RES_INDEX_RES_SHORT=$(BREAK_TREE)/$(INDEX_NAME).res | |
395 | BRK_RES_FILES = $(BRS_SRC:%.txt=$(BRKBLDDIR)/%.res) $(BRK_RES_INDEX_RES) | |
396 | BRK_RES_FILES_SHORT = $(BRS_SRC:%.txt=$(BREAK_TREE)/%.res) | |
397 | ||
374ca955 A |
398 | RBNF_TREE=rbnf |
399 | RBNF_INDEX_FILE=$(OUTTMPDIR)/$(RBNF_TREE)/$(INDEX_NAME).txt | |
400 | RBNF_INDEX_RES=$(RBNFBLDDIR)/$(INDEX_NAME).res | |
401 | RBNF_INDEX_RES_SHORT=$(RBNF_TREE)/$(INDEX_NAME).res | |
402 | RBNF_FILES = $(RBNF_SRC:%.txt=$(RBNFBLDDIR)/%.res) $(RBNF_INDEX_RES) | |
403 | RBNF_FILES_SHORT = $(RBNF_SRC:%.txt=$(RBNF_TREE)/%.res) | |
404 | ||
405 | TRANSLIT_TREE=translit | |
406 | #TRANSLIT_INDEX_FILE=$(OUTTMPDIR)/$(TRANSLIT_TREE)/$(INDEX_NAME).txt | |
407 | #TRANSLIT_INDEX_RES=$(TRANSLITBLDDIR)/$(INDEX_NAME).res | |
408 | #TRANSLIT_INDEX_RES_SHORT=$(TRANSLIT_TREE)/$(INDEX_NAME).res | |
409 | TRANSLIT_FILES = $(TRANSLIT_SRC:%.txt=$(TRANSLITBLDDIR)/%.res) | |
410 | TRANSLIT_FILES_SHORT = $(TRANSLIT_SRC:%.txt=$(TRANSLIT_TREE)/%.res) | |
b75a7d8f | 411 | |
729e4ab9 A |
412 | ## SPP files |
413 | -include $(SPREPSRCDIR)/sprepfiles.mk | |
414 | -include $(SPREPSRCDIR)/spreplocal.mk | |
415 | ALL_SPREP_SOURCE=$(SPREP_SOURCE) $(SPREP_SOURCE_LOCAL) | |
416 | SPREP_FILES = $(ALL_SPREP_SOURCE:%.txt=$(BUILDDIR)/%.spp) | |
417 | SPREP_FILES_SHORT = $(ALL_SPREP_SOURCE:%.txt=%.spp) | |
418 | ||
b75a7d8f | 419 | ## All generated files |
51004dcb | 420 | ALL_FILES = $(DAT_FILES) $(CNV_FILES) $(CNV_FILES_SPECIAL) $(BRK_FILES) $(DICT_FILES) $(RES_FILES) $(INDEX_RES_FILE) $(CURR_FILES) $(LANG_FILES) $(REGION_FILES) $(ZONE_FILES) $(COLLATION_FILES) $(BRK_RES_FILES) $(RBNF_FILES) $(TRANSLIT_FILES) $(SPREP_FILES) $(CFU_FILES) |
729e4ab9 | 421 | ALL_INDEX_SRC_FILES = $(PKGDATA_LIST) $(INDEX_FILE) $(CURR_INDEX_FILE) $(LANG_INDEX_FILE) $(REGION_INDEX_FILE) $(ZONE_INDEX_FILE) $(COLLATION_INDEX_FILE) $(BRK_RES_INDEX_FILE) $(RBNF_INDEX_FILE) |
374ca955 | 422 | # a list to use in the .lst files (package-relative) |
729e4ab9 | 423 | COLL_FILES_LIST=$(COLLATION_FILES_SHORT) $(COLLATION_INDEX_RES_SHORT) |
51004dcb | 424 | BRK_FILES_LIST=$(BRK_FILES_SHORT) $(BRK_RES_FILES_SHORT) $(BRK_RES_INDEX_RES_SHORT) $(DICT_FILES_SHORT) |
729e4ab9 A |
425 | LOCALE_FILES_LIST= $(RES_FILES_SHORT) $(LANG_FILES_SHORT) $(REGION_FILES_SHORT) $(ZONE_FILES_SHORT) |
426 | MISC_FILES_LIST=$(DAT_FILES_SHORT) $(CNV_FILES_SHORT) $(CNV_FILES_SHORT_SPECIAL) $(CURR_FILES_SHORT) $(RBNF_FILES_SHORT) $(RBNF_INDEX_RES_SHORT) $(TRANSLIT_FILES_SHORT) $(SPREP_FILES_SHORT) $(CFU_FILES_SHORT) | |
4388f060 | 427 | UNI_CORE_DATA=pnames.icu uprops.icu ucase.icu ubidi.icu |
46f4442e A |
428 | UNI_CORE_TARGET_DATA=$(UNI_CORE_DATA:%=$(BUILDDIR)/%) |
429 | ||
430 | ifneq ($(INCLUDE_UNI_CORE_DATA),) | |
729e4ab9 | 431 | MISC_FILES_LIST+=$(UNI_CORE_DATA) |
46f4442e A |
432 | build-local: uni-core-data |
433 | endif | |
434 | ||
b75a7d8f A |
435 | ##################################################### |
436 | # General data build rules | |
437 | ||
438 | ## Files to remove for 'make clean' | |
439 | CLEANFILES = *~ icupkg.inc | |
440 | ||
73c04bcf | 441 | ifeq ($(ICUDATA_SOURCE_ARCHIVE),) |
46f4442e A |
442 | build-local: build-dir $(SO_VERSION_DATA) $(ALL_FILES) $(PKGDATA_LIST) $(OS390LIST) |
443 | $(PKGDATA_LIST): $(SRCLISTDEPS) | |
b75a7d8f A |
444 | @echo "generating $@ (list of data files)" |
445 | @-$(RMV) $@ | |
729e4ab9 A |
446 | @for file in $(COLL_FILES_LIST); do \ |
447 | echo $$file >> $@; \ | |
448 | done; | |
449 | @for file in $(BRK_FILES_LIST); do \ | |
450 | echo $$file >> $@; \ | |
451 | done; | |
452 | @for file in $(LOCALE_FILES_LIST); do \ | |
453 | echo $$file >> $@; \ | |
454 | done; | |
455 | @for file in $(MISC_FILES_LIST); do \ | |
b75a7d8f A |
456 | echo $$file >> $@; \ |
457 | done; | |
73c04bcf | 458 | else |
46f4442e A |
459 | build-local: build-dir $(SO_VERSION_DATA) $(PKGDATA_LIST) $(OS390LIST) |
460 | $(PKGDATA_LIST): $(SRCLISTDEPS) $(ICUDATA_SOURCE_ARCHIVE) | |
73c04bcf A |
461 | ifneq ($(ICUDATA_SOURCE_IS_NATIVE_TARGET),YES) |
462 | @echo "Unpacking $(ICUDATA_SOURCE_ARCHIVE) and generating $@ (list of data files)" | |
463 | @-$(RMV) $@ | |
729e4ab9 | 464 | $(INVOKE) $(TOOLBINDIR)/icupkg -d $(BUILDDIR) --list -x \* $(ICUDATA_SOURCE_ARCHIVE) -o $@ |
73c04bcf A |
465 | else |
466 | @echo "$@" > $@ | |
467 | endif | |
468 | endif | |
b75a7d8f | 469 | |
b75a7d8f | 470 | |
729e4ab9 A |
471 | $(BUILD_DIRS): build-dir |
472 | ||
46f4442e A |
473 | build-dir: |
474 | @list='$(BUILD_DIRS)'; \ | |
475 | for dir in $$list; do \ | |
476 | if ! test -d $$dir; then \ | |
477 | echo $(MKINSTALLDIRS) $(BUILD_DIRS); \ | |
478 | $(MKINSTALLDIRS) $(BUILD_DIRS); \ | |
479 | fi; \ | |
480 | done | |
b75a7d8f | 481 | |
46f4442e A |
482 | # The | is an order-only prerequisite. This helps when the -j option is used, |
483 | # and we don't want the files to be built before the directories are built. | |
484 | ifneq ($(filter order-only,$(.FEATURES)),) | |
485 | $(ALL_FILES) $(ALL_INDEX_SRC_FILES): | build-dir | |
486 | endif | |
b75a7d8f A |
487 | |
488 | # Now, sections for building each kind of data. | |
489 | ||
490 | #################################################### DAT | |
491 | # DAT FILES | |
492 | ||
729e4ab9 A |
493 | # cnvalias.icu |
494 | $(BUILDDIR)/cnvalias.icu: $(UCMSRCDIR)/convrtrs.txt $(TOOLBINDIR)/gencnval$(TOOLEXEEXT) | |
495 | $(INVOKE) $(TOOLBINDIR)/gencnval -d $(BUILDDIR) $(UCMSRCDIR)/convrtrs.txt | |
b75a7d8f | 496 | |
729e4ab9 A |
497 | # Targets for prebuilt Unicode data |
498 | $(BUILDDIR)/%.icu: $(SRCDATADIR)/in/%.icu | |
499 | $(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $< $@ | |
b75a7d8f | 500 | |
729e4ab9 A |
501 | $(BUILDDIR)/%.nrm: $(SRCDATADIR)/in/%.nrm |
502 | $(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $< $@ | |
b75a7d8f | 503 | |
729e4ab9 A |
504 | $(BUILDDIR)/coll/%.icu: $(SRCDATADIR)/in/coll/%.icu |
505 | $(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $< $@ | |
b75a7d8f | 506 | |
729e4ab9 A |
507 | #################################################### SPP |
508 | # SPP FILES | |
b75a7d8f | 509 | |
4388f060 | 510 | $(BUILDDIR)/%.spp: $(SPREPSRCDIR)/%.txt $(TOOLBINDIR)/gensprep$(TOOLEXEEXT) $(BUILDDIR)/unames.icu |
729e4ab9 | 511 | $(INVOKE) $(TOOLBINDIR)/gensprep -d $(BUILDDIR) -i $(BUILDDIR) -s $(SPREPSRCDIR) -b $(@F:%.spp=%) -m $(UNICODEDATADIR) -u 3.2.0 $(<F) |
b75a7d8f A |
512 | |
513 | #################################################### BRK | |
514 | # BRK FILES | |
515 | ||
729e4ab9 A |
516 | $(BRKBLDDIR)/%.brk: $(BRKSRCDIR)/%.txt $(TOOLBINDIR)/genbrk$(TOOLEXEEXT) $(DAT_FILES) |
517 | $(INVOKE) $(TOOLBINDIR)/genbrk -c -i $(BUILDDIR) -r $< -o $@ | |
b75a7d8f | 518 | |
51004dcb A |
519 | #################################################### DICT |
520 | # DICT FILES | |
521 | ||
522 | # .dict file generated regardless of whether dictionary file exists | |
523 | ||
524 | $(BRKBLDDIR)/%.dict: $(TOOLBINDIR)/gendict$(TOOLEXEEXT) $(DAT_FILES) | |
525 | $(INVOKE) $(TOOLBINDIR)/gendict --uchars -c -i $(BUILDDIR) $(BRKSRCDIR)/$(*F).txt $@ | |
526 | ||
527 | $(BRKBLDDIR)/thaidict.dict: $(TOOLBINDIR)/gendict$(TOOLEXEEXT) $(DAT_FILES) | |
528 | $(INVOKE) $(TOOLBINDIR)/gendict --bytes --transform offset-0x0e00 -c -i $(BUILDDIR) $(BRKSRCDIR)/thaidict.txt $(BRKBLDDIR)/thaidict.dict | |
73c04bcf | 529 | |
51004dcb A |
530 | # TODO: figure out why combining characters are here? |
531 | $(BRKBLDDIR)/khmerdict.dict: $(TOOLBINDIR)/gendict$(TOOLEXEEXT) $(DAT_FILES) | |
532 | $(INVOKE) $(TOOLBINDIR)/gendict --bytes --transform offset-0x1780 -c -i $(BUILDDIR) $(BRKSRCDIR)/khmerdict.txt $(BRKBLDDIR)/khmerdict.dict | |
729e4ab9 A |
533 | |
534 | #################################################### CFU | |
535 | # CFU FILES | |
536 | # Note: gencfu requires two input files to produce a single output file. | |
537 | # There will be exactly one target file and two source files. | |
538 | # The $(word n, ...) selects the nth word from the following stuff. | |
539 | # There must be a nicer way to do this. | |
540 | ||
541 | $(CFU_FILES): $(ALL_CFU_SOURCE) $(TOOLBINDIR)/gencfu$(TOOLEXEEXT) $(DAT_FILES) | |
542 | $(INVOKE) echo ALL_CFU_SOURCE: $(ALL_CFU_SOURCE) | |
543 | $(INVOKE) echo CFU_FILES: $(CFU_FILES) | |
544 | $(INVOKE) echo CFU_FILES_SHORT: $(CFU_FILES_SHORT) | |
545 | $(INVOKE) $(TOOLBINDIR)/gencfu -c -i $(BUILDDIR) -r $(word 1,$(ALL_CFU_SOURCE)) -w $(word 2,$(ALL_CFU_SOURCE)) -o $@ | |
546 | ||
73c04bcf | 547 | |
b75a7d8f A |
548 | #################################################### CNV |
549 | # CNV FILES | |
729e4ab9 A |
550 | $(CNV_FILES_SPECIAL) : $(UCM_FILES_SPECIAL) $(TOOLBINDIR)/makeconv$(TOOLEXEEXT) |
551 | $(INVOKE) $(TOOLBINDIR)/makeconv --ignore-siso-check -c -d $(BUILDDIR) $(UCMSRCDIR)/$(@F:%.cnv=%.ucm) | |
552 | $(BUILDDIR)/%.cnv: $(UCMSRCDIR)/%.ucm $(TOOLBINDIR)/makeconv$(TOOLEXEEXT) | |
553 | $(INVOKE) $(TOOLBINDIR)/makeconv -c -d $(BUILDDIR) $(UCMSRCDIR)/$(<F) | |
b75a7d8f A |
554 | |
555 | #################################################### RES | |
556 | # RES FILES | |
557 | ||
729e4ab9 A |
558 | ### curr res |
559 | $(CURRBLDDIR)/%.res: $(CURRSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES) | |
560 | $(INVOKE) $(TOOLBINDIR)/genrb --usePoolBundle $(GENRBOPTS) -i $(BUILDDIR) -s $(CURRSRCDIR) -d $(CURRBLDDIR) $(<F) | |
561 | ||
562 | # copy the curr/pool.res file from the source folder to the build output folder | |
563 | # and swap it to native endianness | |
564 | $(CURRBLDDIR)/pool.res: $(CURRSRCDIR)/pool.res | |
565 | $(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $(CURRSRCDIR)/pool.res $(CURRBLDDIR)/pool.res | |
566 | ||
567 | $(CURRBLDDIR)/$(INDEX_NAME).res: $(OUTTMPDIR)/$(CURR_TREE)/$(INDEX_NAME).txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) | |
568 | $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(OUTTMPDIR)/$(CURR_TREE) -d $(CURRBLDDIR) $(INDEX_NAME).txt | |
569 | ||
570 | $(CURR_INDEX_FILE): $(SRCLISTDEPS) | |
571 | @echo "generating $@ (list of installed currency name locales)"; \ | |
572 | $(RMV) $@; \ | |
573 | echo "// Warning this file is automatically generated" > $@; \ | |
574 | echo "$(INDEX_NAME):table(nofallback) {" >> $@; \ | |
575 | echo " InstalledLocales {" >> $@; \ | |
576 | for file in $(INSTALLED_CURR_FILES); do \ | |
577 | echo " $$file {\"\"}" >> $@; \ | |
578 | done; \ | |
579 | echo " }" >> $@; \ | |
580 | echo "}" >> $@; | |
581 | ||
582 | ### lang res | |
583 | $(LANGBLDDIR)/%.res: $(LANGSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES) | |
584 | $(INVOKE) $(TOOLBINDIR)/genrb --usePoolBundle $(GENRBOPTS) -i $(BUILDDIR) -s $(LANGSRCDIR) -d $(LANGBLDDIR) $(<F) | |
585 | ||
586 | # copy the lang/pool.res file from the source folder to the build output folder | |
587 | # and swap it to native endianness | |
588 | $(LANGBLDDIR)/pool.res: $(LANGSRCDIR)/pool.res | |
589 | $(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $(LANGSRCDIR)/pool.res $(LANGBLDDIR)/pool.res | |
590 | ||
591 | $(LANGBLDDIR)/$(INDEX_NAME).res: $(OUTTMPDIR)/$(LANG_TREE)/$(INDEX_NAME).txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) | |
592 | $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(OUTTMPDIR)/$(LANG_TREE) -d $(LANGBLDDIR) $(INDEX_NAME).txt | |
593 | ||
594 | $(LANG_INDEX_FILE): $(SRCLISTDEPS) | |
595 | @echo "generating $@ (list of installed language name locales)"; \ | |
596 | $(RMV) $@; \ | |
597 | echo "// Warning this file is automatically generated" > $@; \ | |
598 | echo "$(INDEX_NAME):table(nofallback) {" >> $@; \ | |
599 | echo " InstalledLocales {" >> $@; \ | |
600 | for file in $(INSTALLED_LANG_FILES); do \ | |
601 | echo " $$file {\"\"}" >> $@; \ | |
602 | done; \ | |
603 | echo " }" >> $@; \ | |
604 | echo "}" >> $@; | |
605 | ||
606 | ### region res | |
607 | $(REGIONBLDDIR)/%.res: $(REGIONSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES) | |
608 | $(INVOKE) $(TOOLBINDIR)/genrb --usePoolBundle $(GENRBOPTS) -i $(BUILDDIR) -s $(REGIONSRCDIR) -d $(REGIONBLDDIR) $(<F) | |
609 | ||
610 | # copy the region/pool.res file from the source folder to the build output folder | |
611 | # and swap it to native endianness | |
612 | $(REGIONBLDDIR)/pool.res: $(REGIONSRCDIR)/pool.res | |
613 | $(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $(REGIONSRCDIR)/pool.res $(REGIONBLDDIR)/pool.res | |
614 | ||
615 | $(REGIONBLDDIR)/$(INDEX_NAME).res: $(OUTTMPDIR)/$(REGION_TREE)/$(INDEX_NAME).txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) | |
616 | $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(OUTTMPDIR)/$(REGION_TREE) -d $(REGIONBLDDIR) $(INDEX_NAME).txt | |
617 | ||
618 | $(REGION_INDEX_FILE): $(SRCLISTDEPS) | |
619 | @echo "generating $@ (list of installed region name locales)"; \ | |
620 | $(RMV) $@; \ | |
621 | echo "// Warning this file is automatically generated" > $@; \ | |
622 | echo "$(INDEX_NAME):table(nofallback) {" >> $@; \ | |
623 | echo " InstalledLocales {" >> $@; \ | |
624 | for file in $(INSTALLED_REGION_FILES); do \ | |
625 | echo " $$file {\"\"}" >> $@; \ | |
626 | done; \ | |
627 | echo " }" >> $@; \ | |
628 | echo "}" >> $@; | |
629 | ||
630 | ### zone res | |
631 | $(ZONEBLDDIR)/%.res: $(ZONESRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES) | |
632 | $(INVOKE) $(TOOLBINDIR)/genrb --usePoolBundle $(GENRBOPTS) -i $(BUILDDIR) -s $(ZONESRCDIR) -d $(ZONEBLDDIR) $(<F) | |
633 | ||
634 | # copy the zone/pool.res file from the source folder to the build output folder | |
635 | # and swap it to native endianness | |
636 | $(ZONEBLDDIR)/pool.res: $(ZONESRCDIR)/pool.res | |
637 | $(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $(ZONESRCDIR)/pool.res $(ZONEBLDDIR)/pool.res | |
638 | ||
639 | $(ZONEBLDDIR)/$(INDEX_NAME).res: $(OUTTMPDIR)/$(ZONE_TREE)/$(INDEX_NAME).txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) | |
640 | $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(OUTTMPDIR)/$(ZONE_TREE) -d $(ZONEBLDDIR) $(INDEX_NAME).txt | |
641 | ||
642 | $(ZONE_INDEX_FILE): $(SRCLISTDEPS) | |
643 | @echo "generating $@ (list of installed time zone name locales)"; \ | |
644 | $(RMV) $@; \ | |
645 | echo "// Warning this file is automatically generated" > $@; \ | |
646 | echo "$(INDEX_NAME):table(nofallback) {" >> $@; \ | |
647 | echo " InstalledLocales {" >> $@; \ | |
648 | for file in $(INSTALLED_ZONE_FILES); do \ | |
649 | echo " $$file {\"\"}" >> $@; \ | |
650 | done; \ | |
651 | echo " }" >> $@; \ | |
652 | echo "}" >> $@; | |
653 | ||
374ca955 | 654 | ### collation res |
729e4ab9 A |
655 | $(COLBLDDIR)/%.res: $(COLSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES) |
656 | $(INVOKE) $(TOOLBINDIR)/genrb --includeUnihanColl $(GENRBOPTS) -i $(BUILDDIR) -s $(COLSRCDIR) -d $(COLBLDDIR) $(<F) | |
374ca955 | 657 | |
729e4ab9 A |
658 | $(COLBLDDIR)/$(INDEX_NAME).res: $(OUTTMPDIR)/$(COLLATION_TREE)/$(INDEX_NAME).txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) |
659 | $(INVOKE) $(TOOLBINDIR)/genrb --includeUnihanColl $(GENRBOPTS) -i $(BUILDDIR) -s $(OUTTMPDIR)/$(COLLATION_TREE) -d $(COLBLDDIR) $(INDEX_NAME).txt | |
374ca955 | 660 | |
46f4442e | 661 | $(COLLATION_INDEX_FILE): $(SRCLISTDEPS) |
374ca955 A |
662 | @echo "generating $@ (list of installed collation locales)"; \ |
663 | $(RMV) $@; \ | |
664 | echo "// Warning this file is automatically generated" > $@; \ | |
73c04bcf | 665 | echo "$(INDEX_NAME):table(nofallback) {" >> $@; \ |
374ca955 A |
666 | echo " InstalledLocales {" >> $@; \ |
667 | for file in $(INSTALLED_COL_FILES); do \ | |
668 | echo " $$file {\"\"}" >> $@; \ | |
669 | done; \ | |
670 | echo " }" >> $@; \ | |
671 | echo "}" >> $@; | |
672 | ||
73c04bcf | 673 | ### brk res |
51004dcb | 674 | $(BRKBLDDIR)/%.res: $(BRKSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(BRK_FILES) $(DICT_FILES) $(DAT_FILES) |
729e4ab9 | 675 | $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(BRKSRCDIR) -d $(BRKBLDDIR) $(<F) |
73c04bcf | 676 | |
729e4ab9 A |
677 | $(BRKBLDDIR)/$(INDEX_NAME).res: $(OUTTMPDIR)/$(BREAK_TREE)/$(INDEX_NAME).txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) |
678 | $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(OUTTMPDIR)/$(BREAK_TREE) -d $(BRKBLDDIR) $(INDEX_NAME).txt | |
73c04bcf | 679 | |
46f4442e | 680 | $(BRK_RES_INDEX_FILE): $(SRCLISTDEPS) |
73c04bcf A |
681 | @echo "generating $@ (list of installed break locales)"; \ |
682 | $(RMV) $@; \ | |
683 | echo "// Warning this file is automatically generated" > $@; \ | |
684 | echo "$(INDEX_NAME):table(nofallback) {" >> $@; \ | |
685 | echo " InstalledLocales {" >> $@; \ | |
686 | for file in $(INSTALLED_BRS_FILES); do \ | |
687 | echo " $$file {\"\"}" >> $@; \ | |
688 | done; \ | |
689 | echo " }" >> $@; \ | |
690 | echo "}" >> $@; | |
691 | ||
374ca955 | 692 | ### RBNF res |
729e4ab9 A |
693 | $(RBNFBLDDIR)/%.res: $(RBNFSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES) |
694 | $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(RBNFSRCDIR) -d $(RBNFBLDDIR) $(<F) | |
374ca955 | 695 | |
729e4ab9 A |
696 | $(RBNFBLDDIR)/$(INDEX_NAME).res: $(OUTTMPDIR)/$(RBNF_TREE)/$(INDEX_NAME).txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) |
697 | $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(OUTTMPDIR)/$(RBNF_TREE) -d $(RBNFBLDDIR) $(INDEX_NAME).txt | |
374ca955 | 698 | |
46f4442e | 699 | $(RBNF_INDEX_FILE): $(SRCLISTDEPS) |
374ca955 A |
700 | @echo "generating $@ (list of installed RBNF locales)"; \ |
701 | $(RMV) $@; \ | |
702 | echo "// Warning this file is automatically generated" > $@; \ | |
73c04bcf | 703 | echo "$(INDEX_NAME):table(nofallback) {" >> $@; \ |
374ca955 A |
704 | echo " InstalledLocales {" >> $@; \ |
705 | for file in $(INSTALLED_RBNF_FILES); do \ | |
706 | echo " $$file {\"\"}" >> $@; \ | |
707 | done; \ | |
708 | echo " }" >> $@; \ | |
709 | echo "}" >> $@; | |
710 | ||
711 | ### TRANSLIT res | |
729e4ab9 A |
712 | $(TRANSLITBLDDIR)/%.res: $(TRANSLITSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES) |
713 | $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -s $(TRANSLITSRCDIR) -d $(TRANSLITBLDDIR) $(<F) | |
714 | ||
374ca955 | 715 | ### normal (locale) res |
b75a7d8f A |
716 | all-RES: $(RES_FILES) |
717 | ||
729e4ab9 A |
718 | $(BUILDDIR)/%.res: $(LOCSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) $(DAT_FILES) |
719 | $(INVOKE) $(TOOLBINDIR)/genrb --usePoolBundle $(GENRBOPTS) -i $(BUILDDIR) -s $(LOCSRCDIR) -d $(BUILDDIR) $(<F) | |
720 | ||
721 | # copy the locales/pool.res file from the source folder to the build output folder | |
722 | # and swap it to native endianness | |
723 | $(BUILDDIR)/pool.res: $(LOCSRCDIR)/pool.res | |
724 | $(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $(LOCSRCDIR)/pool.res $(BUILDDIR)/pool.res | |
b75a7d8f | 725 | |
729e4ab9 A |
726 | # if the tzcode directory contains a new tzdata*.tar.gz file, use it for zoneinfo |
727 | ifeq ($(TZDATA),) | |
73c04bcf | 728 | TZDATA = $(firstword $(wildcard $(top_builddir)/tools/tzcode/tzdata*.tar.gz) $(wildcard $(top_srcdir)/tools/tzcode/tzdata*.tar.gz)) |
729e4ab9 | 729 | endif |
73c04bcf A |
730 | |
731 | ifneq ($(TZDATA),) | |
732 | ||
733 | TZCODE_DIR=$(top_builddir)/tools/tzcode | |
729e4ab9 | 734 | ZONEINFO=$(TZCODE_DIR)/zoneinfo64.txt |
73c04bcf | 735 | |
729e4ab9 A |
736 | # Override the normal genrb for zoneinfo to always pull from |
737 | # icu/source/tools/tzcode/zoneinfo64.txt | |
738 | $(BUILDDIR)/zoneinfo64.res: $(ZONEINFO) $(TOOLBINDIR)/genrb$(TOOLEXEEXT) | |
73c04bcf | 739 | @echo Note: $(MISCSRCDIR)/zoneinfo.txt is IGNORED because $(TZDATA) is present. |
729e4ab9 | 740 | $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -q -i $(BUILDDIR) -d $(BUILDDIR) $(ZONEINFO) |
73c04bcf | 741 | |
729e4ab9 | 742 | # Create the tzcode tool and zoneinfo as needed. |
73c04bcf A |
743 | $(ZONEINFO): $(TZDATA) |
744 | @echo "$(MAKE)[$(MAKELEVEL)]: Making \`$(ZONEINFO)' in \`$(TZCODE_DIR)'"; \ | |
745 | (cd $(TZCODE_DIR) && $(MAKE)) || exit; \ | |
746 | ||
729e4ab9 | 747 | # end of zoneinfo-generation |
73c04bcf A |
748 | endif |
749 | ||
374ca955 | 750 | # zoneinfo has some issues. Ignore some warnings with -q |
729e4ab9 A |
751 | $(BUILDDIR)/%.res: $(MISCSRCDIR)/%.txt $(TOOLBINDIR)/genrb$(TOOLEXEEXT) |
752 | $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -q -i $(BUILDDIR) -s $(MISCSRCDIR) -d $(BUILDDIR) $(<F) | |
b75a7d8f | 753 | |
73c04bcf A |
754 | |
755 | ||
46f4442e | 756 | $(INDEX_FILE): $(SRCLISTDEPS) |
b75a7d8f A |
757 | @echo "generating $@ (list of installed locales)"; \ |
758 | $(RMV) $@; \ | |
759 | echo "// Warning this file is automatically generated" > $@; \ | |
73c04bcf | 760 | echo "$(INDEX_NAME):table(nofallback) {" >> $@; \ |
46f4442e | 761 | echo " CLDRVersion { \"$(GENRB_CLDR_VERSION)\" }" >> $@; \ |
b75a7d8f A |
762 | echo " InstalledLocales {" >> $@; \ |
763 | for file in $(INSTALLED_RB_FILES); do \ | |
764 | echo " $$file {\"\"}" >> $@; \ | |
765 | done; \ | |
766 | echo " }" >> $@; \ | |
767 | echo "}" >> $@; | |
768 | ||
374ca955 | 769 | clean-resindex: |
46f4442e | 770 | -$(RMV) $(BUILDDIR)/$(INDEX_NAME).txt $(PKGDATA_LIST) |
374ca955 | 771 | |
729e4ab9 A |
772 | $(BUILDDIR)/$(INDEX_NAME).res: $(INDEX_FILE) $(TOOLBINDIR)/genrb$(TOOLEXEEXT) |
773 | $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -i $(BUILDDIR) -d $(BUILDDIR) $(INDEX_FILE) | |
b75a7d8f | 774 | |
4388f060 | 775 | # The core Unicode properties files (pnames.icu, uprops.icu, ucase.icu, ubidi.icu) |
46f4442e A |
776 | # are hardcoded in the common DLL and therefore not included in the data package any more. |
777 | # They are not built by default but need to be built for ICU4J data and for getting the .c source files | |
778 | # when updating the Unicode data. | |
46f4442e A |
779 | uni-core-data: build-dir $(UNI_CORE_TARGET_DATA) |
780 | @echo Unicode .icu files built to $(BUILDDIR) | |
729e4ab9 A |
781 | |
782 | # Build the ICU4J icudata.jar. | |
783 | # Command line: | |
784 | # (Run this from the output data folder which may not be .../source/data in an out-of-source build.) | |
785 | # ~/svn.icu/trunk/source/data> make JAR=jar ICU4J_ROOT=~/svn.icu4j/trunk icudata.jar | |
786 | # You can omit the ICU4J_ROOT for just building the .jar files without copying them. | |
787 | # You can omit the JAR if it's just jar. | |
788 | JAR=jar | |
789 | ||
790 | # For building the testdata.jar see ../test/testdata/Makefile. | |
791 | ||
4388f060 A |
792 | ICU4J_TZDATA=$(OUTDIR)/icu4j/icutzdata.jar |
793 | ICU4J_TZDATA_FILES=zoneinfo64 metaZones timezoneTypes windowsZones | |
794 | ICU4J_DATA_DIRNAME=com/ibm/icu/impl/data/$(ICUDATA_BASENAME_VERSION)b | |
795 | ICU4J_TZDATA_PATHS=$(ICU4J_TZDATA_FILES:%="$(ICU4J_DATA_DIRNAME)/%.res") | |
796 | ||
797 | # generate icu4j-related data to $(OUTDIR)/icu4j/com/ibm/icu/impl/data/... | |
798 | generate-data: build-dir packagedata $(OUTTMPDIR)/$(ICUDATA_PLATFORM_NAME).dat uni-core-data | |
799 | mkdir -p $(OUTDIR)/icu4j/$(ICU4J_DATA_DIRNAME) | |
800 | mkdir -p $(OUTDIR)/icu4j/tzdata/$(ICU4J_DATA_DIRNAME) | |
801 | echo pnames.icu ubidi.icu ucase.icu uprops.icu > $(OUTDIR)/icu4j/add.txt | |
802 | $(INVOKE) $(TOOLBINDIR)/icupkg $(OUTTMPDIR)/$(ICUDATA_PLATFORM_NAME).dat $(OUTDIR)/icu4j/$(ICUDATA_BASENAME_VERSION)b.dat -a $(OUTDIR)/icu4j/add.txt -s $(BUILDDIR) -x '*' -tb -d $(OUTDIR)/icu4j/$(ICU4J_DATA_DIRNAME) | |
803 | mv $(ICU4J_TZDATA_PATHS:%=$(OUTDIR)/icu4j/%) "$(OUTDIR)/icu4j/tzdata/$(ICU4J_DATA_DIRNAME)" | |
804 | ||
805 | $(OUTDIR)/icu4j/icutzdata.jar: generate-data | |
806 | $(JAR) cf $(OUTDIR)/icu4j/icutzdata.jar -C $(OUTDIR)/icu4j/tzdata $(ICU4J_DATA_DIRNAME)/ | |
807 | ||
729e4ab9 A |
808 | # Build icudata.jar: |
809 | # - add the uni-core-data to the ICU package | |
810 | # - swap the ICU data | |
811 | # - extract all data items | |
812 | # - package them into the .jar file | |
4388f060 A |
813 | $(OUTDIR)/icu4j/icudata.jar: generate-data |
814 | $(JAR) cf $(OUTDIR)/icu4j/icudata.jar -C $(OUTDIR)/icu4j $(ICU4J_DATA_DIRNAME)/ | |
729e4ab9 A |
815 | |
816 | ICU4J_DATA=$(OUTDIR)/icu4j/icudata.jar | |
817 | ||
818 | ifdef ICU4J_ROOT | |
819 | ||
4388f060 | 820 | ICU4J_DATA_INSTALLED=$(ICU4J_ROOT)/main/shared/data/icudata.jar $(ICU4J_ROOT)/main/shared/data/icutzdata.jar |
729e4ab9 A |
821 | |
822 | $(ICU4J_ROOT)/main/shared/data/icudata.jar: $(OUTDIR)/icu4j/icudata.jar | |
823 | mkdir -p $(ICU4J_ROOT)/main/shared/data | |
824 | cp $(OUTDIR)/icu4j/icudata.jar $(ICU4J_ROOT)/main/shared/data | |
825 | ||
4388f060 A |
826 | $(ICU4J_ROOT)/main/shared/data/icutzdata.jar: $(OUTDIR)/icu4j/icutzdata.jar |
827 | mkdir -p $(ICU4J_ROOT)/main/shared/data | |
828 | cp $(OUTDIR)/icu4j/icutzdata.jar $(ICU4J_ROOT)/main/shared/data | |
829 | ||
729e4ab9 A |
830 | icu4j-data-install: $(ICU4J_DATA_INSTALLED) |
831 | ||
832 | else | |
833 | ||
834 | icu4j-data-install: icu4j-data | |
835 | @echo data is built into $(OUTDIR)/icu4j | |
836 | @echo '** Error:' ICU4J_ROOT was not set, could not install | |
837 | exit 1 | |
838 | ||
839 | endif | |
840 | ||
4388f060 | 841 | icu4j-data: $(ICU4J_DATA) $(ICU4J_TZDATA) |
729e4ab9 | 842 | |
46f4442e | 843 | |
b75a7d8f A |
844 | ################################################################### |
845 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
846 | cd $(top_builddir) \ | |
847 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
848 | ||
729e4ab9 A |
849 | icupkg.inc: pkgdataMakefile |
850 | $(MAKE) -f pkgdataMakefile | |
851 | ||
852 | pkgdataMakefile: | |
b75a7d8f A |
853 | cd $(top_builddir) \ |
854 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
855 | ||
856 | ########### | |
857 | ########### 390 (z/OS) support | |
858 | UCMFILES390=ebcdic-xml-us.ucm ibm-37_P100-1995.ucm ibm-1047_P100-1995.ucm ibm-4909_P100-1999.ucm | |
4388f060 A |
859 | # used to depend on pnames.icu uprops.icu ucase.icu ubidi.icu |
860 | # These are now hardcoded in ICU4C and only loaded in ICU4J. | |
861 | ALLFILES390=cnvalias.icu $(UCMFILES390:.ucm=.cnv) | |
b75a7d8f | 862 | |
374ca955 | 863 | $(OUTTMPDIR)/icudata390.lst: $(SRCLISTDEPS) |
b75a7d8f A |
864 | @echo "generating $@ (list of 390 data files)" |
865 | @-$(RMV) $@ | |
866 | @for file in $(ALLFILES390); do \ | |
b75a7d8f A |
867 | echo $$file >> $@; \ |
868 | done; | |
869 | ||
374ca955 A |
870 | ifeq ($(POST_DATA_BUILD), os400-data-rebind) |
871 | os400-data-rebind: $(LIBICUUC) | |
b75a7d8f | 872 | |
374ca955 A |
873 | $(LIBICUUC): $(LIBICUDT) |
874 | $(RMV) $(LIBICUUC) | |
875 | (cd ../common && $(MAKE) RECURSIVE=YES) || exit; | |
876 | endif | |
b75a7d8f | 877 |