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 \
140 EXTRA_DIST = $(locale_builder_sources) $(supp_data_files) lcids.xml supplementalData.xml textinfo.xml \
141 $(extra_langs) $(extra_locales)
144 locale-builder.exe: $(locale_builder_sources)
145 $(MCS) $(MCSFLAGS) /out:$@ $^
147 culture-table: locale-builder.exe lang-data locale-data
148 $(RUNTIME) locale-builder.exe
150 minimal: locale-builder.exe lang-data locale-data
151 $(RUNTIME) locale-builder.exe --locales '$(MINIMAL_LOCALES)'
154 if ! test -f langs/en.xml ; then \
155 wget http://go-mono.com/icu/icu_langs.tar.gz ; \
156 tar xzvf icu_langs.tar.gz ; \
160 if ! test -f locales/en_US.xml ; then \
161 wget http://go-mono.com/icu/icu_locales.tar.gz ; \
162 tar xzvf icu_locales.tar.gz ; \
165 install-culture-table: culture-info-tables.h
166 cp -f culture-info-tables.h ../../mono/metadata/.