summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2012-02-02 18:03:07 +0900
committerAkira TAGOH <akira@tagoh.org>2012-02-02 18:03:07 +0900
commit56004d23cd1cbabc7119b516163cffb0cb49445a (patch)
treec42f1d483e48dc13f9eeeedc61f1ea87e63d5879 /data
parent42b5bdf6cb287dc36b8da1b82dd0a7a370fbcfd6 (diff)
Fix a distcheck error
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am26
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 \