diff options
author | Paolo Molaro <lupus@oddwiz.org> | 2004-12-14 17:56:35 +0300 |
---|---|---|
committer | Paolo Molaro <lupus@oddwiz.org> | 2004-12-14 17:56:35 +0300 |
commit | 6b467982681137394240ea23c24061105fde09b4 (patch) | |
tree | 30937b72d7ee69495ed2ece2cd7f270e818a276d /tools | |
parent | 863f0981ea90aee32427fee2343e9134b941df44 (diff) |
Add a target to build a selection of locales and a bit of docs.
svn path=/trunk/mono/; revision=37749
Diffstat (limited to 'tools')
-rw-r--r-- | tools/locale-builder/Makefile.am | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/tools/locale-builder/Makefile.am b/tools/locale-builder/Makefile.am index 8a492fb6a7e..736054a799c 100644 --- a/tools/locale-builder/Makefile.am +++ b/tools/locale-builder/Makefile.am @@ -2,8 +2,21 @@ MCS = mcs RUNTIME = mono MCSFLAGS = -g - -CLEANFILES = locale-builder.exe +# To build a reduced mono runtime with support only for some locales, # run: +# make minimal +# To build with a single locale (en_US), run: +# make minimal MINIMAL_LOCALES=en_US +# MINIMAL_LOCALES is a regular expression over the filenames in locales. +# make minimal saves about 60 KB of the mono binary size. +# To create the tables fro all the supported locales, use: +# make culture-table +# After make minimal or make culture-table, you need to run: +# make install-culture-table +# to copy the needed files where the mono build will pick them up. + +MINIMAL_LOCALES=en + +CLEANFILES = locale-builder.exe culture-info-tables.h locale_builder_sources = Driver.cs \ CultureInfoEntry.cs \ @@ -28,6 +41,9 @@ locale-builder.exe: $(locale_builder_sources) culture-table: locale-builder.exe lang-data locale-data $(RUNTIME) locale-builder.exe +minimal: locale-builder.exe lang-data locale-data + $(RUNTIME) locale-builder.exe --locales '$(MINIMAL_LOCALES)' + lang-data: if ! test -f langs/en.xml ; then \ wget http://primates.ximian.com/~jackson/icu_langs.tar.gz ; \ @@ -40,5 +56,6 @@ locale-data: tar xzvf icu_locales.tar.gz ; \ fi -install-culture-table: culture-table - cp -f culture-info-tables.h ../../mono/metadata/.
\ No newline at end of file +install-culture-table: culture-info-tables.h + cp -f culture-info-tables.h ../../mono/metadata/. + |