Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / tools / locale-builder / Makefile.am
index 73577a3da5bdd84d58ab59f4eae0f59b356e23db..909fbc1d42f2f1e9b471e70e55b10ff17122cee6 100644 (file)
@@ -8,7 +8,7 @@ MCSFLAGS = -debug+
 #      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:
+# To create the tables for all the supported locales, use:
 #      make culture-table
 # After make minimal or make culture-table, you need to run:
 #      make install-culture-table
@@ -19,6 +19,9 @@ MINIMAL_LOCALES=en
 CLEANFILES = locale-builder.exe culture-info-tables.h
 
 locale_builder_sources = Driver.cs             \
+                       CalendarType.cs \
+                       Constants.cs \
+                       Patterns.cs \
                         CultureInfoEntry.cs    \
                         DateTimeFormatEntry.cs \
                         NumberFormatEntry.cs   \
@@ -26,35 +29,21 @@ locale_builder_sources = Driver.cs          \
                         TextInfoEntry.cs       \
                         Entry.cs
 
-supp_data_files = supp/ar_AE.xml supp/ar_EG.xml supp/ar_KW.xml supp/ar_MA.xml  \
-                supp/ar_YE.xml supp/en_PH.xml supp/en_ZA.xml supp/th.xml       \
-                supp/ar_IQ.xml supp/ar_LB.xml supp/ar_OM.xml supp/ar_TN.xml    \
-                supp/en_US.xml supp/en_ZW.xml supp/ar_DZ.xml supp/ar_JO.xml    \
-                supp/ar_QA.xml supp/ar.xml    supp/en_IE.xml supp/en.xml               \
-                supp/ar_SY.xml supp/ar_BH.xml supp/en_CA.xml supp/ar_LY.xml    \
-                supp/root.xml
-
-EXTRA_DIST = $(locale_builder_sources) $(supp_data_files) lcids.xml supplementalData.xml textinfo.xml
+EXTRA_DIST = $(locale_builder_sources) lcids.xml
 
 locale-builder.exe: $(locale_builder_sources)
        $(MCS) $(MCSFLAGS) /out:$@ $^
 
-culture-table: locale-builder.exe lang-data locale-data
+culture-table: locale-builder.exe locale-data
        $(RUNTIME) locale-builder.exe
 
-minimal: locale-builder.exe lang-data locale-data
+minimal: locale-builder.exe 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 ; \
-               tar xzvf icu_langs.tar.gz ; \
-       fi
-
 locale-data:
-       if ! test -f locales/en_US.xml ; then \
-               wget http://primates.ximian.com/~jackson/icu_locales.tar.gz ; \
-               tar xzvf icu_locales.tar.gz ; \
+       if ! test -e CLDR/common/supplemental/supplementalData.xml ; then \
+               curl http://www.unicode.org/Public/cldr/30.0.2/core.zip -o core.zip ; \
+               unzip core.zip -d CLDR ; \
        fi
 
 install-culture-table: culture-info-tables.h