xref: /illumos-gate/usr/src/data/locale/tools/Makefile (revision 8226594fdd4479be135127f43632f1f995074654)
1#
2# This file and its contents are supplied under the terms of the
3# Common Development and Distribution License ("CDDL"), version 1.0.
4# You may only use this file in accordance with the terms of version
5# 1.0 of the CDDL.
6#
7# A full copy of the text of the CDDL should have accompanied this
8# source.  A copy of the CDDL is also available via the Internet at
9# http://www.illumos.org/license/CDDL.
10#
11
12#
13# Copyright 2017 Nexenta Systems, Inc.
14#
15
16include		$(SRC)/data/Makefile.data
17include		$(SRC)/data/locale/Makefile.com
18
19CMFILES=	$(_CHARMAPS:%=build/%.cm)
20
21GB18030SRCS=	$(GB18030_LOCALES:%=build/%.GB18030.src)
22ISO1SRCS=	$(ISO8859_1_LOCALES:%=build/%.ISO8859-1.src)
23ISO2SRCS=	$(ISO8859_2_LOCALES:%=build/%.ISO8859-2.src)
24ISO5SRCS=	$(ISO8859_5_LOCALES:%=build/%.ISO8859-5.src)
25ISO7SRCS=	$(ISO8859_7_LOCALES:%=build/%.ISO8859-7.src)
26ISO9SRCS=	$(ISO8859_9_LOCALES:%=build/%.ISO8859-9.src)
27ISO11SRCS=	$(_ISO8859_11_LOCALES:%=build/%.ISO8859-11.src)
28ISO13SRCS=	$(ISO8859_13_LOCALES:%=build/%.ISO8859-13.src)
29ISO15SRCS=	$(ISO8859_15_LOCALES:%=build/%.ISO8859-15.src)
30KOI8RSRCS=	$(KOI8_R_LOCALES:%=build/%.KOI8-R.src)
31UTF8SRCS=	$(_UTF_8_LOCALES:%=build/%.UTF-8.src)
32
33.PARALLEL:
34
35all:		$(CMFILES) $(GB18030SRCS) $(ISO1SRCS) $(ISO2SRCS) $(ISO5SRCS) \
36		$(ISO7SRCS) $(ISO9SRCS) $(ISO13SRCS) $(ISO15SRCS) $(KOI8RSRCS) \
37		$(UTF8SRCS)
38
39$(CMFILES):	build posix.jar
40		java -jar posix.jar org.unicode.cldr.posix.GenerateCharmap -d build -c $(@F:%.cm=%)
41
42$(GB18030SRCS):	build posix.jar
43		java -DCLDR_DIR=cldr -jar posix.jar org.unicode.cldr.posix.GeneratePOSIX -d build -m $(@F:%.GB18030.src=%) -c GB18030
44$(ISO1SRCS):	build posix.jar
45		java -DCLDR_DIR=cldr -jar posix.jar org.unicode.cldr.posix.GeneratePOSIX -d build -m $(@F:%.ISO8859-1.src=%) -c ISO8859-1
46$(ISO2SRCS):	build posix.jar
47		java -DCLDR_DIR=cldr -jar posix.jar org.unicode.cldr.posix.GeneratePOSIX -d build -m $(@F:%.ISO8859-2.src=%) -c ISO8859-2
48$(ISO5SRCS):	build posix.jar
49		java -DCLDR_DIR=cldr -jar posix.jar org.unicode.cldr.posix.GeneratePOSIX -d build -m $(@F:%.ISO8859-5.src=%) -c ISO8859-5
50$(ISO7SRCS):	build posix.jar
51		java -DCLDR_DIR=cldr -jar posix.jar org.unicode.cldr.posix.GeneratePOSIX -d build -m $(@F:%.ISO8859-7.src=%) -c ISO8859-7
52$(ISO9SRCS):	build posix.jar
53		java -DCLDR_DIR=cldr -jar posix.jar org.unicode.cldr.posix.GeneratePOSIX -d build -m $(@F:%.ISO8859-9.src=%) -c ISO8859-9
54$(ISO13SRCS):	build posix.jar
55		java -DCLDR_DIR=cldr -jar posix.jar org.unicode.cldr.posix.GeneratePOSIX -d build -m $(@F:%.ISO8859-13.src=%) -c ISO8859-13
56$(ISO15SRCS):	build posix.jar
57		java -DCLDR_DIR=cldr -jar posix.jar org.unicode.cldr.posix.GeneratePOSIX -d build -m $(@F:%.ISO8859-15.src=%) -c ISO8859-15
58$(KOI8RSRCS):	build posix.jar
59		java -DCLDR_DIR=cldr -jar posix.jar org.unicode.cldr.posix.GeneratePOSIX -d build -m $(@F:%.KOI8-R.src=%) -c KOI8-R
60$(UTF8SRCS):	build posix.jar
61		java -DCLDR_DIR=cldr -jar posix.jar org.unicode.cldr.posix.GeneratePOSIX -d build -m $(@F:%.UTF-8.src=%) -c UTF-8
62
63build:
64		$(INS.dir)
65
66posix.jar: posix.xml
67		ant -f posix.xml
68