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 for 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 \
26 DateTimeFormatEntry.cs \
27 NumberFormatEntry.cs \
32 EXTRA_DIST = $(locale_builder_sources) lcids.xml
34 locale-builder.exe: $(locale_builder_sources)
35 $(MCS) $(MCSFLAGS) /out:$@ $^
37 culture-table: locale-builder.exe locale-data
38 $(RUNTIME) locale-builder.exe
40 minimal: locale-builder.exe locale-data
41 $(RUNTIME) locale-builder.exe --locales '$(MINIMAL_LOCALES)'
44 if ! test -d CLDR/common ; then \
45 curl http://www.unicode.org/Public/cldr/30.0.2/core.zip -o core.zip ; \
46 unzip core.zip -d CLDR ; \
49 install-culture-table: culture-info-tables.h
50 cp -f culture-info-tables.h ../../mono/metadata/.