5 # To build a reduced mono runtime with support only for some locales, # run:
7 # To build with a single locale (en_US), run:
8 # make minimal MINIMAL_LOCALES=en_US
9 # MINIMAL_LOCALES is a regular expression over the filenames in locales.
10 # make minimal saves about 60 KB of the mono binary size.
11 # To create the tables fro all the supported locales, use:
13 # After make minimal or make culture-table, you need to run:
14 # make install-culture-table
15 # to copy the needed files where the mono build will pick them up.
19 CLEANFILES = locale-builder.exe culture-info-tables.h
21 locale_builder_sources = Driver.cs \
23 DateTimeFormatEntry.cs \
24 NumberFormatEntry.cs \
133 EXTRA_DIST = $(locale_builder_sources) $(supp_data_files) lcids.xml supplementalData.xml textinfo.xml
135 locale-builder.exe: $(locale_builder_sources)
136 $(MCS) $(MCSFLAGS) /out:$@ $^
138 culture-table: locale-builder.exe lang-data locale-data
139 $(RUNTIME) locale-builder.exe
141 minimal: locale-builder.exe lang-data locale-data
142 $(RUNTIME) locale-builder.exe --locales '$(MINIMAL_LOCALES)'
145 if ! test -f langs/en.xml ; then \
146 wget http://primates.ximian.com/~jackson/icu_langs.tar.gz ; \
147 tar xzvf icu_langs.tar.gz ; \
151 if ! test -f locales/en_US.xml ; then \
152 wget http://primates.ximian.com/~jackson/icu_locales.tar.gz ; \
153 tar xzvf icu_locales.tar.gz ; \
156 install-culture-table: culture-info-tables.h
157 cp -f culture-info-tables.h ../../mono/metadata/.