Makefile
author jenda
Fri, 10 Apr 2009 14:07:02 +0200
changeset 8 44f8eb36a5e1
parent 6 4395d6f6b380
child 10 5fa74c99fd1c
permissions -rw-r--r--
locele_cldr: fix minor makefile bugs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
     1
#
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
     2
# CDDL HEADER START
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
     3
#
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").  
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
     7
#
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
     8
# You can obtain a copy of the license at src/OPENSOLARIS.LICENSE
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    10
# See the License for the specific language governing permissions
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    11
# and limitations under the License.
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    12
#
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    14
# file and include the License file at src/OPENSOLARIS.LICENSE.
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    18
#
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    19
# CDDL HEADER END
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    20
#
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    21
# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    22
# Use is subject to license terms.
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    23
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    24
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    25
include $(SRC)/Makefile.master
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    26
5
63aec4025526 locale_cldr: move list of generated locales (and variants) from Makefile to locale.list
jenda
parents: 4
diff changeset
    27
LOCALES:sh = grep '^[a-z]' locale.list|cut -f1
63aec4025526 locale_cldr: move list of generated locales (and variants) from Makefile to locale.list
jenda
parents: 4
diff changeset
    28
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    29
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    30
COMMON_CFLAGS	= $(CCVERBOSE) -K pic -D PIC -G -I. -z defs -z text -z ignore -D_REENTRANT
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    31
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    32
# escape ',' for localedef
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    33
sparc_CCUNBOUND		= -Wd\,-xsafe=unboundsym
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    34
sparc_SPACEFLAG		= -xspace -W0\,-Lt -W2\,-Rcond_elim
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    35
sparcv9_SPACEFLAG	= -xspace -W0\,-Lt -W2\,-Rcond_elim
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    36
CCREGSYM		= -Wc\,-Qiselect-regsym=0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    37
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    38
CERRWARN	=
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    39
CFLAGS          += $(COMMON_CFLAGS) $(XREGSFLAG)
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    40
CFLAGS64        += $(COMMON_CFLAGS) $(XREGSFLAG64)
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    41
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    42
LDF_OPT		= 
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    43
LDF_OPT64	= -m lp64
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    44
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    45
LOPT_ORIGIN	= "-R\\\$$ORIGIN"
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    46
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    47
JAVA_FLAGS	= -Dhttp.proxyHost=webcache.sfbay -Dhttp.proxyPort=8080
6
4395d6f6b380 locale_cldr: cldr bug 2111 workaround, ctype_copy, makefile fixes
jenda
parents: 5
diff changeset
    48
JAVA_FLAGS	+= -Xmx256m
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    49
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    50
JARS		= jars/icu4j.jar jars/utilities.jar jars/xalan.jar jars/xml-apis.jar jars/cldr.jar
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    51
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    52
LOCALEDEF	= $(SRC)/tools/localedef.sh -P /opt/SUNWspro/bin $(LDF_OPT) -c -v -W cc,"$(CFLAGS)" -L "$(LOPT_ORIGIN)"
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    53
LOCALEDEF64	= $(SRC)/tools/localedef.sh -P /opt/SUNWspro/bin $(LDF_OPT64) -c -v -W cc,"$(CFLAGS64)" -L "$(LOPT_ORIGIN)"
3
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
    54
GENERATE_POSIX	= $(JAVA_ROOT)/bin/java  $(JAVA_FLAGS) -cp $(JAVA_CP_SH:sh) -DCLDR_DTD_CACHE=dtd_cache org.unicode.cldr.posix.GeneratePOSIX -s cldr_core -d posix
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
    55
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
    56
JAVA_CP_SH	= echo $(JARS) | tr ' ' ':'
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    57
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    58
8
44f8eb36a5e1 locele_cldr: fix minor makefile bugs
jenda
parents: 6
diff changeset
    59
all: $(LOCALES:%=locale/%.so.3 locale64/%.so.3)
44f8eb36a5e1 locele_cldr: fix minor makefile bugs
jenda
parents: 6
diff changeset
    60
44f8eb36a5e1 locele_cldr: fix minor makefile bugs
jenda
parents: 6
diff changeset
    61
doc: diffs.html
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    62
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    63
install: all
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    64
	for l in $(LOCALES); do \
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    65
		$(INSDIR) $(FILEROOT)/usr/lib/locale/$$l/$(MACH64); \
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    66
		cp locale/$$l.so.3 $(FILEROOT)/usr/lib/locale/$$l; \
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    67
		cp locale64/$$l.so.3 $(FILEROOT)/usr/lib/locale/$$l/$(MACH64); \
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    68
	done
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    69
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    70
DIRS = charmap cldr_tools cldr_core locale locale64 posix xalan jars
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    71
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    72
clean:
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    73
	rm -Rf $(DIRS)
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    74
	rm -Rf cldr.jar icu4j.jar xalan.jar utilities.jar xml-apis.jar
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    75
	rm -Rf cmap.dat ldump diffs.html
3
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
    76
	find extension/ -type l -exec rm -f {} \;
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    77
	rm -Rf .unpack_*
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    78
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    79
distclean: clean
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    80
	rm -Rf download
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    81
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    82
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    83
3
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
    84
CHARMAP_SH	= echo $* | cut -d. -f2
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
    85
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
    86
locale/%.so.3: posix/%.src charmap/%.cm extension/%.x locale/.dir
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
    87
	cd locale; $(LOCALEDEF) -x ../extension/$*.x -f ../charmap/$*.cm -i ../posix/$*.src $*
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    88
3
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
    89
locale64/%.so.3: posix/%.src charmap/%.cm extension/%.x locale64/.dir
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
    90
	cd locale64; $(LOCALEDEF64) -x ../extension/$*.x -f ../charmap/$*.cm -i ../posix/$*.src $*
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    91
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    92
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    93
5
63aec4025526 locale_cldr: move list of generated locales (and variants) from Makefile to locale.list
jenda
parents: 4
diff changeset
    94
LOCALE_SH	= grep "^$*" locale.list| cut -f2
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    95
3
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
    96
8
44f8eb36a5e1 locele_cldr: fix minor makefile bugs
jenda
parents: 6
diff changeset
    97
posix/%.src:  $(JARS) cldr_core/.src posix/.dir dtd_cache/.dir # locale.list
6
4395d6f6b380 locale_cldr: cldr bug 2111 workaround, ctype_copy, makefile fixes
jenda
parents: 5
diff changeset
    98
	$(GENERATE_POSIX) -c $(CHARMAP_SH:sh) -m $(LOCALE_SH:sh)
4395d6f6b380 locale_cldr: cldr bug 2111 workaround, ctype_copy, makefile fixes
jenda
parents: 5
diff changeset
    99
	$(MV) "posix/$(LOCALE_SH:sh).$(CHARMAP_SH:sh).src" "$@"
3
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
   100
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
   101
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
   102
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
   103
extension/%.UTF-8.x: extension/UTF-8.x
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
   104
	ln -s UTF-8.x $@
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
   105
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
   106
extension/%.ISO8859-1.x extension/%.ISO8859-2.x extension/%.ISO8859-5.x extension/%.ISO8859-7.x extension/%.ISO8859-9.x extension/%.ISO8859-13.x extension/%.ISO8859-15.x: extension/ISO8859.x
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
   107
	ln -s ISO8859.x $@
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
   108
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
   109
extension/%.eucJP.x extension/%.ANSI1251.x extension/%.KOI8-R.x: extension/ISO8859.x
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
   110
	ln -s ISO8859.x $@
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
   111
6
4395d6f6b380 locale_cldr: cldr bug 2111 workaround, ctype_copy, makefile fixes
jenda
parents: 5
diff changeset
   112
# Solaris does not support Unicode 5.1 yet so GENERATE_POSIX needs more params for the UTF-8 locales
4395d6f6b380 locale_cldr: cldr bug 2111 workaround, ctype_copy, makefile fixes
jenda
parents: 5
diff changeset
   113
#IS_UTF8_SH	= expr "$*" : ".*UTF-8" > /dev/null && echo " -u [\\\\u0000-\\\\uFFFF] -x [\\\\u0000-\\\\uFFFF]" || true
4395d6f6b380 locale_cldr: cldr bug 2111 workaround, ctype_copy, makefile fixes
jenda
parents: 5
diff changeset
   114
IS_UTF8_SH	= expr "$*" : ".*UTF-8" > /dev/null && echo " -u '[[\\\\u0000-\\\\U0010FFFF]-[[:Phoenician:][:Kharoshthi:][:Cuneiform:][\\\\U0001D200-\\\\U0001D24F]]]'" || true
3
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
   115
6
4395d6f6b380 locale_cldr: cldr bug 2111 workaround, ctype_copy, makefile fixes
jenda
parents: 5
diff changeset
   116
8
44f8eb36a5e1 locele_cldr: fix minor makefile bugs
jenda
parents: 6
diff changeset
   117
.NO_PARALLEL: $(LOCALES:%=charmap/%.cm)
3
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
   118
charmap/%.cm: $(JARS) charmap/.dir
6
4395d6f6b380 locale_cldr: cldr bug 2111 workaround, ctype_copy, makefile fixes
jenda
parents: 5
diff changeset
   119
	[ -f charmap/$(CHARMAP_SH:sh).cm ] || $(JAVA_ROOT)/bin/java $(JAVA_FLAGS) -cp $(JAVA_CP_SH:sh) org.unicode.cldr.posix.GenerateCharmap -d charmap -c $(CHARMAP_SH:sh) $(IS_UTF8_SH:sh)
3
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
   120
	ln -s $(CHARMAP_SH:sh).cm $@
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   121
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   122
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   123
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   124
jars/cldr.jar: jars/icu4j.jar jars/utilities.jar jars/xalan.jar jars/xml-apis.jar cldr_tools/.src
6
4395d6f6b380 locale_cldr: cldr bug 2111 workaround, ctype_copy, makefile fixes
jenda
parents: 5
diff changeset
   125
	cd cldr_tools; ICU4J_JAR=../jars/icu4j.jar UTILITIES_JAR=../jars/utilities.jar CLDR_JAR=../jars/xalan.jar XML_APIS_JAR=../jars/xml-apis.jar ant jar
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   126
	cp cldr_tools/cldr.jar $@
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   127
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   128
jars/utilities.jar: cldr_tools/.src  jars/.dir
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   129
	cp cldr_tools/utilities.jar $@
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   130
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   131
jars/xalan.jar: xalan/.unpack jars/.dir
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   132
	cp xalan/xalan-j_2_7_1/xalan.jar $@
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   133
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   134
jars/xml-apis.jar: xalan/.unpack jars/.dir
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   135
	cp xalan/xalan-j_2_7_1/xml-apis.jar $@
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   136
6
4395d6f6b380 locale_cldr: cldr bug 2111 workaround, ctype_copy, makefile fixes
jenda
parents: 5
diff changeset
   137
jars/icu4j.jar: cldr_tools/.src jars/.dir
4395d6f6b380 locale_cldr: cldr bug 2111 workaround, ctype_copy, makefile fixes
jenda
parents: 5
diff changeset
   138
	cp cldr_tools/icu4j-3_8_1.jar $@
4395d6f6b380 locale_cldr: cldr bug 2111 workaround, ctype_copy, makefile fixes
jenda
parents: 5
diff changeset
   139
4395d6f6b380 locale_cldr: cldr bug 2111 workaround, ctype_copy, makefile fixes
jenda
parents: 5
diff changeset
   140
#jars/icu4j.jar: download/icu4j-4_0.jar jars/.dir
4395d6f6b380 locale_cldr: cldr bug 2111 workaround, ctype_copy, makefile fixes
jenda
parents: 5
diff changeset
   141
#	cp download/icu4j-4_0.jar $@
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   142
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   143
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   144
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   145
cldr_core/.unpack: download/cldr_core.zip cldr_core/.dir
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   146
	unzip -q download/cldr_core.zip -d cldr_core
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   147
	touch $@
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   148
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   149
cldr_tools/.unpack: download/cldr_tools.zip cldr_tools/.dir
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   150
	unzip -q download/cldr_tools.zip -d cldr_tools
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   151
	touch $@
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   152
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   153
xalan/.unpack: download/xalan-j_2_7_1-bin.zip xalan/.dir
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   154
	unzip -q download/xalan-j_2_7_1-bin.zip -d xalan
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   155
	touch $@
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   156
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   157
cldr_tools/.src: cldr_tools/.unpack
8
44f8eb36a5e1 locele_cldr: fix minor makefile bugs
jenda
parents: 6
diff changeset
   158
	@[ ! -d patches/$(@D) -o ! "$$(ls -A patches/$(@D))" ] || for a in patches/$(@D)/*.patch; do \
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   159
		echo "applying $$a"; \
6
4395d6f6b380 locale_cldr: cldr bug 2111 workaround, ctype_copy, makefile fixes
jenda
parents: 5
diff changeset
   160
		(cd $(@D); $(GNU_PATCH) -p1) < $$a; \
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   161
	done
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   162
	touch $@
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   163
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   164
cldr_core/.src: cldr_core/.unpack
8
44f8eb36a5e1 locele_cldr: fix minor makefile bugs
jenda
parents: 6
diff changeset
   165
	@[ ! -d patches/$(@D) -o ! "$$(ls -A patches/$(@D))" ] || for a in patches/$(@D)/*.patch; do \
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   166
		echo "applying $$a"; \
6
4395d6f6b380 locale_cldr: cldr bug 2111 workaround, ctype_copy, makefile fixes
jenda
parents: 5
diff changeset
   167
		(cd $(@D); $(GNU_PATCH) -p1) < $$a; \
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   168
	done
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   169
	touch $@
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   170
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   171
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   172
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   173
download/icu4j-4_0.jar: download/.dir
6
4395d6f6b380 locale_cldr: cldr bug 2111 workaround, ctype_copy, makefile fixes
jenda
parents: 5
diff changeset
   174
	$(WGET) -q -O $@ http://download.icu-project.org/files/icu4j/4.0/icu4j-4_0.jar
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   175
	touch $@
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   176
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   177
download/cldr_tools.zip: download/.dir
6
4395d6f6b380 locale_cldr: cldr bug 2111 workaround, ctype_copy, makefile fixes
jenda
parents: 5
diff changeset
   178
	$(WGET) -q -O $@ http://unicode.org/Public/cldr/1.6.1/tools.zip
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   179
	touch $@
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   180
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   181
download/cldr_core.zip: download/.dir
6
4395d6f6b380 locale_cldr: cldr bug 2111 workaround, ctype_copy, makefile fixes
jenda
parents: 5
diff changeset
   182
	$(WGET) -q -O $@ http://unicode.org/Public/cldr/1.6.1/core.zip
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   183
	touch $@
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   184
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   185
download/xalan-j_2_7_1-bin.zip: download/.dir
6
4395d6f6b380 locale_cldr: cldr bug 2111 workaround, ctype_copy, makefile fixes
jenda
parents: 5
diff changeset
   186
	$(WGET) -q -O $@ http://www.mirrorgeek.com/apache.org/xml/xalan-j/xalan-j_2_7_1-bin.zip
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   187
	touch $@
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   188
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   189
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   190
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   191
diffs.html: ldump tools/lcmp.pl
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   192
	tools/lcmp.pl $(LOCALES) >$@
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   193
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   194
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   195
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   196
# tools
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   197
ldump: tools/ldump.c cmap.dat
6
4395d6f6b380 locale_cldr: cldr bug 2111 workaround, ctype_copy, makefile fixes
jenda
parents: 5
diff changeset
   198
	# $(CC) -I . -o ldump tools/ldump.c - Sunstudio cc is not able to compile such big files
4395d6f6b380 locale_cldr: cldr bug 2111 workaround, ctype_copy, makefile fixes
jenda
parents: 5
diff changeset
   199
	gcc -I . -o ldump tools/ldump.c
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   200
4
293b0bbc91fc locale_cldr: fix cmap.dat generation if $LOCALES is empty
jenda
parents: 3
diff changeset
   201
cmap.dat: tools/cmap.pl $(LOCALES:%=locale/%.so.3) charmap/.dir
3
3c75085964b9 improve locale_cldr/Makefile
jenda
parents: 0
diff changeset
   202
	tools/cmap.pl `find charmap/ -type f -name '*.cm'` > $@
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   203
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   204
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   205
%/.dir:
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   206
	rm -Rf $*; mkdir -p $*
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   207
	touch $@