aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Pankov <yuripv@FreeBSD.org>2019-10-21 03:01:05 +0000
committerYuri Pankov <yuripv@FreeBSD.org>2019-10-21 03:01:05 +0000
commita9b0e78c849ebdeddd9c36d126977ffd385eccf6 (patch)
tree50cc9ca476e8d49099cd7d508bbdb0622ef7db88
parent022b70f504f11e7fb726254c7cd7d9e45377f38f (diff)
downloadsrc-a9b0e78c849ebdeddd9c36d126977ffd385eccf6.tar.gz
src-a9b0e78c849ebdeddd9c36d126977ffd385eccf6.zip
tools/tools/locale: allow POSIX target to be built in parallel
While it's rarely used target, more so a one not used during the buildworld, it helps when it's not taking hours (literally).
Notes
Notes: svn path=/head/; revision=353791
-rw-r--r--tools/tools/locale/Makefile38
1 files changed, 17 insertions, 21 deletions
diff --git a/tools/tools/locale/Makefile b/tools/tools/locale/Makefile
index 492ff714feb7..508034d19695 100644
--- a/tools/tools/locale/Makefile
+++ b/tools/tools/locale/Makefile
@@ -143,37 +143,33 @@ ENCODINGS= Big5 \
KOI8-U \
SJIS \
US-ASCII \
- UTF-8 \
+ UTF-8
-
-POSIX:
-.if exists (${UNIDIR}/tools/java/cldr.jar)
- mkdir -p ${UNIDIR}/posix
-. for area in ${BASE_LOCALES_OF_INTEREST}
-. if !exists(${UNIDIR}/posix/${area}.UTF-8.src)
+POSIX: posixsrc posixcol posixcm
+.if !exists(${UNIDIR}/tools/java/cldr.jar)
+.error check README about building cldr.jar
+.endif
+.for area in ${BASE_LOCALES_OF_INTEREST}
+posixsrc: ${UNIDIR}/posix/${area}.UTF-8.src
+${UNIDIR}/posix/${area}.UTF-8.src:
java -DCLDR_DIR=${UNIDIR:Q} -jar ${UNIDIR}/tools/java/cldr.jar \
org.unicode.cldr.posix.GeneratePOSIX \
-d ${UNIDIR}/posix -m ${area} -c UTF-8
-. endif
-. endfor
-. for area encoding in ${COLLATION_SPECIAL}
-. if !exists(${UNIDIR}/posix/${area}.${encoding}.src)
+.endfor
+.for area encoding in ${COLLATION_SPECIAL}
+posixcol: ${UNIDIR}/posix/${area}.${encoding}.src
+${UNIDIR}/posix/${area}.${encoding}.src:
java -DCLDR_DIR=${UNIDIR:Q} -jar ${UNIDIR}/tools/java/cldr.jar \
org.unicode.cldr.posix.GeneratePOSIX \
-d ${UNIDIR}/posix -m ${area} -c ${encoding}
-. endif
-. endfor
-. for enc in ${ENCODINGS}
-. if !exists(${UNIDIR}/posix/${enc}.cm)
+.endfor
+.for enc in ${ENCODINGS}
+posixcm: ${UNIDIR}/posix/${enc}.cm
+${UNIDIR}/posix/${enc}.cm:
java -DCLDR_DIR=${UNIDIR:Q} -jar ${UNIDIR}/tools/java/cldr.jar \
org.unicode.cldr.posix.GenerateCharmap \
-d ${UNIDIR}/posix -c ${enc}
-. endif
-. endfor
-.else
- @echo "Please install CLDR toolset for the desired release"
- @echo "It should go at ${UNIDIR}/tools"
-.endif
+.endfor
clean-POSIX:
rm -f ${UNIDIR}/posix/*