diff options
Diffstat (limited to 'data/Makefile.am')
-rw-r--r-- | data/Makefile.am | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index c21f03c..401e64e 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -3,9 +3,15 @@ NULL = EXTRA_DIST = \ language-subtag-registry \ + stamp-core-zip \ + $(subtagregistry_DATA) \ + $(ldmldata_DATA) \ $(NULL) MAINTAINERCLEANFILES = \ language-subtag-registry \ + $(bcp47_xml_files) \ + core.zip \ + stamp-core-zip \ $(NULL) CLEANFILES = \ language-subtag-registry.xml \ @@ -13,10 +19,19 @@ CLEANFILES = \ BUILT_FILES = \ language-subtag-registry \ language-subtag-registry.xml \ + $(bcp47_xml_files) \ $(NULL) ## # Local definitions +bcp47_xml_files = \ + common/bcp47/calendar.xml \ + common/bcp47/collation.xml \ + common/bcp47/currency.xml \ + common/bcp47/number.xml \ + common/bcp47/timezone.xml \ + common/bcp47/variant.xml \ + $(NULL) ## # Local Rules @@ -25,6 +40,13 @@ language-subtag-registry: curl -o $@ http://www.iana.org/assignments/language-subtag-registry language-subtag-registry.xml: language-subtag-registry reg2xml Makefile $(builddir)/reg2xml $(srcdir)/language-subtag-registry > $@ +stamp-core-zip: + [ -f core.zip ] && rm core.zip + wget http://unicode.org/Public/cldr/latest/core.zip || \ + curl http://unicode.org/Public/cldr/latest/core.zip; \ + unzip -o core.zip "common/bcp47/*"; \ + touch $@ +$(bcp47_xml_files): stamp-core-zip ## # Target platform @@ -32,6 +54,10 @@ subtagregistrydir = $(datadir)/liblangtag subtagregistry_DATA = \ language-subtag-registry.xml \ $(NULL) +ldmldatadir = $(datadir)/liblangtag/common/bcp47 +ldmldata_DATA = \ + $(bcp47_xml_files) \ + $(NULL) # noinst_PROGRAMS = \ reg2xml \ |