Makefile
author jenda
Fri, 29 Jul 2011 14:07:04 +0200
changeset 142 da26b9f833de
parent 138 dff2e32f3bca
permissions -rw-r--r--
7068147 removing CDDL from copies of source/text files delivered to the binary product
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
111
33aaab5040ad 6900712 [PSARC/2009/528] Remove obsolete short-form locales
hnhn
parents: 109
diff changeset
     5
# Common Development and Distribution License (the "License").
0
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
#
29
1db559ddf29a add and/or fix CDDL headers
jenda
parents: 26
diff changeset
     8
# You can obtain a copy of the license at OPENSOLARIS.LICENSE
0
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
29
1db559ddf29a add and/or fix CDDL headers
jenda
parents: 26
diff changeset
    14
# file and include the License file at OPENSOLARIS.LICENSE.
0
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
#
128
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
    21
# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
29
1db559ddf29a add and/or fix CDDL headers
jenda
parents: 26
diff changeset
    22
#
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    23
57
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    24
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    25
# common applications
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    26
JAVA		?= java
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    27
ANT		?= ant
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    28
LOCALEDEF	?= localedef
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    29
WGET		?= wget
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    30
GNU_PATCH	?= gpatch
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    31
UNZIP		?= unzip
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
    32
ZIP		?= zip
57
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    33
PERL		?= perl
130
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
    34
GNU_TAR		?= gtar
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
    35
CC		= /opt/SUNWspro/bin/cc
57
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    36
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
    37
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
    38
# internal applications
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
    39
GEN_CHARMAP	= $(JAVA) $(CLDR_JAVAFLAGS) -cp $(call classpath) org.unicode.cldr.posix.GenerateCharmap 
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
    40
GEN_POSIX	= $(JAVA) $(CLDR_JAVAFLAGS) -cp $(call classpath) org.unicode.cldr.posix.GeneratePOSIX 
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
    41
GEN_DESCRIPTION	= $(JAVA) $(CLDR_JAVAFLAGS) -cp $(call classpath) org.unicode.cldr.tool.LocaleDescription
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
    42
XMLVALIDATOR	= $(JAVA) $(CLDR_JAVAFLAGS) -cp $(call classpath) org.unicode.cldr.util.XMLValidator
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
    43
57
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    44
58
629fd75208e1 define downloaded software versions in config.mk
jenda
parents: 57
diff changeset
    45
# software versions
130
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
    46
CLDR_VERSION		:= 1.9.0
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
    47
ICU4J_VERSION		:= 4.6.1
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
    48
XALAN_VERSION		:= 2.7.1
58
629fd75208e1 define downloaded software versions in config.mk
jenda
parents: 57
diff changeset
    49
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
    50
CLDR_CORE_SOURCE	:= core_$(subst .,_,$(CLDR_VERSION)).zip
58
629fd75208e1 define downloaded software versions in config.mk
jenda
parents: 57
diff changeset
    51
CLDR_CORE_SITE		:= http://unicode.org/Public/cldr/$(CLDR_VERSION)/core.zip
629fd75208e1 define downloaded software versions in config.mk
jenda
parents: 57
diff changeset
    52
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
    53
CLDR_TOOLS_SOURCE	:= tools_$(subst .,_,$(CLDR_VERSION)).zip
58
629fd75208e1 define downloaded software versions in config.mk
jenda
parents: 57
diff changeset
    54
CLDR_TOOLS_SITE		:= http://unicode.org/Public/cldr/$(CLDR_VERSION)/tools.zip
629fd75208e1 define downloaded software versions in config.mk
jenda
parents: 57
diff changeset
    55
130
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
    56
ICU4J_SOURCE		:= icu4j-$(subst .,_,$(ICU4J_VERSION)).tgz
58
629fd75208e1 define downloaded software versions in config.mk
jenda
parents: 57
diff changeset
    57
ICU4J_SITE		:= http://download.icu-project.org/files/icu4j/$(ICU4J_VERSION)/$(ICU4J_SOURCE)
629fd75208e1 define downloaded software versions in config.mk
jenda
parents: 57
diff changeset
    58
629fd75208e1 define downloaded software versions in config.mk
jenda
parents: 57
diff changeset
    59
XALAN_SOURCE		:= xalan-j_$(subst .,_,$(XALAN_VERSION))-bin.zip
127
e53aeef086b3 update proxy and xalan mirror
pavel heimlich - Sun Microsystems - Prague Czech Republic <Pavel.Heimlich@Sun.COM>
parents: 126
diff changeset
    60
XALAN_SITE		:= http://apache.mirrors.airband.net/xml/xalan-j/$(XALAN_SOURCE)
58
629fd75208e1 define downloaded software versions in config.mk
jenda
parents: 57
diff changeset
    61
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
    62
CLDR_DTD_SOURCE		:= cldr_dtd.$(subst .,_,$(CLDR_VERSION)).zip
58
629fd75208e1 define downloaded software versions in config.mk
jenda
parents: 57
diff changeset
    63
57
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    64
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    65
# architecture
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    66
MACH		:= $(shell uname -p)
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    67
MACH64_sparc	= sparcv9
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    68
MACH64_i386	= amd64
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    69
MACH64		= $(MACH64_$(MACH))
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    70
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    71
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    72
# compile flags
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    73
#
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    74
#	CFLAGS_*:	flags for both (32/64bit) targets
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    75
#	CFLAGS32_*:	flags for 32bit target
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    76
#	CFLAGS64_*:	flags for 64bit target
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    77
#	CFLAGS*_common:	flags for both (i386/sparc) architectures
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    78
#	CFLAGS*_sparc:	flags for sparc architecture only
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    79
#	CFLAGS*_i386:	flags for i386 architecture only
138
dff2e32f3bca 7046316 locale and method shared objects can be built better
jenda
parents: 134
diff changeset
    80
#
57
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    81
CFLAGS_common	= -xO3 -Xa -xildoff -xc99=%none -v -K pic -D PIC -G -I. -z defs -z text -z ignore -D_REENTRANT
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    82
CFLAGS32_common	= -m32
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    83
CFLAGS64_common	= -m64
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    84
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    85
CFLAGS_sparc	= -xarch=sparc -xspace -W0\,-Lt -W2\,-Rcond_elim -Wd\,-xsafe=unboundsym -xregs=no%appl
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    86
CFLAGS64_sparc	= -dalign -v  -Wc\,-Qiselect-regsym=0
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    87
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    88
CFLAGS32_i386	= -xspace
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    89
CFLAGS64_i386	= -xarch=sse2 -Ui386 -U__i386  
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
    90
138
dff2e32f3bca 7046316 locale and method shared objects can be built better
jenda
parents: 134
diff changeset
    91
# dtto for LDFLAGS
dff2e32f3bca 7046316 locale and method shared objects can be built better
jenda
parents: 134
diff changeset
    92
#
dff2e32f3bca 7046316 locale and method shared objects can be built better
jenda
parents: 134
diff changeset
    93
LDFLAGS_common		= -Bdirect
dff2e32f3bca 7046316 locale and method shared objects can be built better
jenda
parents: 134
diff changeset
    94
LDFLAGS32_common	= -R\\\$$ORIGIN/../common
dff2e32f3bca 7046316 locale and method shared objects can be built better
jenda
parents: 134
diff changeset
    95
LDFLAGS64_common	= -R\\\$$ORIGIN/../../common/$(MACH64)
dff2e32f3bca 7046316 locale and method shared objects can be built better
jenda
parents: 134
diff changeset
    96
dff2e32f3bca 7046316 locale and method shared objects can be built better
jenda
parents: 134
diff changeset
    97
LDFLAGS_sparc	= -M /usr/lib/ld/map.pagealign
dff2e32f3bca 7046316 locale and method shared objects can be built better
jenda
parents: 134
diff changeset
    98
LDFLAGS_i386	= -M /usr/lib/ld/map.pagealign -M /usr/lib/ld/map.noexdata
dff2e32f3bca 7046316 locale and method shared objects can be built better
jenda
parents: 134
diff changeset
    99
57
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
   100
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   101
# java flags
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   102
# for cldr posix locale generator
134
455f05a692fc 7040301 Uncomplete LC_CTYPE information after migration to CLDR 1.9 & Unicode 6.0
jenda
parents: 133
diff changeset
   103
JAVAFLAGS	= -Xmx512m
57
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
   104
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
   105
# misc
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   106
DOWNLOADS	?= .
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   107
FILEROOT	= proto/$(MACH)/fileroot
57
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
   108
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
   109
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
   110
# ==== END OF CONFIGURATION ====
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
   111
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   112
# To put more focus on warnings, be less verbose as default
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   113
# Use 'make V=1' to see the full commands
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   114
ifeq ($(V),1)
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   115
  M=@\#
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   116
  Q=
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   117
else
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   118
  M=@echo ' '  
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   119
  Q=@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   120
endif
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   121
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   122
57
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
   123
# list of all locales
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
   124
LOCALES = $(basename $(notdir $(wildcard locale/*.spec)))
30
a1878e39c19f aesthetic adjustments in makefiles
jenda
parents: 29
diff changeset
   125
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   126
# C flags
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   127
CFLAGS32	?= $(CFLAGS_common) $(CFLAGS32_common) $(CFLAGS_$(MACH)) $(CFLAGS32_$(MACH))
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   128
CFLAGS64	?= $(CFLAGS_common) $(CFLAGS64_common) $(CFLAGS_$(MACH)) $(CFLAGS64_$(MACH))
26
cade4546c172 migrate from g11n-oso to standalone ws and from ccs/make to gnu make
jenda
parents: 24
diff changeset
   129
138
dff2e32f3bca 7046316 locale and method shared objects can be built better
jenda
parents: 134
diff changeset
   130
LDFLAGS32	?= $(LDFLAGS_common) $(LDFLAGS32_common) $(LDFLAGS_$(MACH)) $(LDFLAGS32_$(MACH))
dff2e32f3bca 7046316 locale and method shared objects can be built better
jenda
parents: 134
diff changeset
   131
LDFLAGS64	?= $(LDFLAGS_common) $(LDFLAGS64_common) $(LDFLAGS_$(MACH)) $(LDFLAGS64_$(MACH))
dff2e32f3bca 7046316 locale and method shared objects can be built better
jenda
parents: 134
diff changeset
   132
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   133
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   134
# java flags for cldr posix locale generator
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   135
#	'-DCLDR_DTD_CACHE=.dtd_cache':		cache dir for temporary files
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   136
#	'-Dhttp.proxyHost=webcache.sfbay -Dhttp.proxyPort=8080:		default web proxy
130
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   137
CLDR_JAVAFLAGS	= $(JAVAFLAGS) -Dhttp.proxyHost=emeacache.uk.oracle.com -Dhttp.proxyPort=80 -DCLDR_DTD_CACHE=build/.dtd_cache -DCLDR_DIR=build/cldr_core
5
63aec4025526 locale_cldr: move list of generated locales (and variants) from Makefile to locale.list
jenda
parents: 4
diff changeset
   138
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   139
# locale name parsing functions
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   140
locale_xxYY = $(firstword $(subst ., ,$(1)))
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   141
charmap = $(firstword $(subst @, ,$(lastword $(subst ., ,$(1)))))
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   142
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   143
# misrc
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   144
#   CLDR uses different names for some charmaps 
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   145
cldr_charmap = $(subst ANSI1251,ansi-1251,$(call charmap,$(1)))
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   146
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   147
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   148
# ************************
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   149
# ==== Public targets ====
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   150
# ************************
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   151
133
65086617f925 remove obsolete and broken SVR4 prototype creation tasks from Makefile
jenda
parents: 132
diff changeset
   152
.PHONY: all install doc build_tools clean
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   153
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   154
all: build/pkgs.d build/cldr.d locale_objects
8
44f8eb36a5e1 locele_cldr: fix minor makefile bugs
jenda
parents: 6
diff changeset
   155
128
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
   156
install: install_ips
31
4494cec780b5 add install target to Makefile
jenda
parents: 30
diff changeset
   157
73
db0f94907036 add diff.html report
jenda
parents: 70
diff changeset
   158
doc: build/report_diff.html
61
aa074266466f fix default value of key 'manifest'
jenda
parents: 60
diff changeset
   159
130
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   160
build_tools: build/icu4j.jar build/xalan.jar build/xml-apis.jar build/utilities.jar build/cldr.jar build/cldr_core/.src
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   161
57
706a08680440 reorder and simplify makefiles, build all code in ./build dir
jenda
parents: 39
diff changeset
   162
clean: 
130
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   163
	$(M)CLEAN
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   164
	$(Q)rm -Rf build pkgmaps proto
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
   165
38
ea0937345b04 add 'make ips' target
jenda
parents: 36
diff changeset
   166
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   167
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   168
# ****************************************
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   169
# ==== generate makefile depend files ====
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   170
# ****************************************
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   171
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   172
-include build/pkgs.d
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   173
-include build/cldr.d
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   174
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   175
.PHONY: $(PKGS)
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   176
115
e6a10d95ac6f remove SUNWlocaledefsrc (obsolete pkg) building rules from Makefile
jenda
parents: 113
diff changeset
   177
# little woo-doo: %pkg is hash of arrays, key is pkg_name, values are locales; 
e6a10d95ac6f remove SUNWlocaledefsrc (obsolete pkg) building rules from Makefile
jenda
parents: 113
diff changeset
   178
# ... look to the generated 'build/pkgs.d'
116
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   179
build/pkgs.d: $(LOCALES:%=build/%/pkg_name) build/.dir
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   180
	$(M)GENERATE $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   181
	$(Q)$(PERL) -e 'push @{$$pkg{substr(`cat $$_`,0,-1)}},m!build/(.*)/pkg_name! foreach (glob "build/*/pkg_name"); \
128
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
   182
		 print "PKGS ?= SUNWlocaledefsrc " . join(" ", keys %pkg) . "\n"; \
117
fbb3551be55e make ips generates manifests with the same list of files as svr4 prototypes
jenda
parents: 116
diff changeset
   183
		 print "build/$$_/.installed: " . join(" ", map { "build/$$_/.installed" } @{$$pkg{$$_}}) ."\n" foreach (keys %pkg); \
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   184
		 print "build/$$_/manifest: " . join(" ", map { "build/$$_/manifest" } @{$$pkg{$$_}}) ."\n" foreach (keys %pkg); ' > $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   185
116
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   186
build/cldr.d: $(LOCALES:%=build/%/cldr_variant) build/.dir
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   187
	$(M)GENERATE $@
132
7e8834a94d06 7011510 CLDR 1.9 ... - fix LC_CTYPE category: generate ctype from cldr/unicode
jenda
parents: 130
diff changeset
   188
	$(Q)$(PERL) -e 'my %loc = map { m!build/(.*)/cldr_variant! => m!build/.+\.([^@]+).*/cldr_variant! } qw($^); \
7e8834a94d06 7011510 CLDR 1.9 ... - fix LC_CTYPE category: generate ctype from cldr/unicode
jenda
parents: 130
diff changeset
   189
		print "CHARMAPS ?= " . join(" ", grep { ! $$seen1{$$_}++ } values %loc) . "\n"; \
7e8834a94d06 7011510 CLDR 1.9 ... - fix LC_CTYPE category: generate ctype from cldr/unicode
jenda
parents: 130
diff changeset
   190
		print "build/$$k/32bit.so.3 build/$$k/64bit.so.3: build/$$v.cm misc/$$v.x\n" while(($$k,$$v) = each %loc);'  > $@
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   191
128
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
   192
build/SUNWlocaledefsrc/manifest: misc/templates/manifest/header_localedefsrc $(LOCALES:%=build/%/manifest_src) $(CHARMAPS:%=build/manifest_charmap_%)
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
   193
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   194
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   195
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   196
# ************************
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   197
# ==== Locale Objects ====
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   198
# ************************
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   199
130
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   200
.PHONY: posix locale_objects
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   201
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   202
locale_objects: $(LOCALES:%=build/%/32bit.so.3) $(LOCALES:%=build/%/64bit.so.3)
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   203
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   204
# all jars that CldrTools needs
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   205
CLDR_TOOLS_DEPS	= build/icu4j.jar build/xalan.jar build/xml-apis.jar build/utilities.jar build/cldr.jar build/cldr_core/.src
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   206
130
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   207
posix: $(LOCALES:%=build/%/posix.src)
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   208
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   209
$(LOCALES:%=build/%/posix.src): build/%/posix.src: build/%/cldr_variant $(CLDR_TOOLS_DEPS) build/.dtd_cache/.src
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   210
	$(M)GENERATE $@
130
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   211
	$(Q)$(GEN_POSIX) -d $(@D) -o $(@F) -c $(call cldr_charmap,$*) -m $(shell cat $<) 
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   212
113
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   213
$(LOCALES:%=build/%/32bit.so.3): build/%/32bit.so.3: build/%/posix.src build/%/32bit/.methods_so
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   214
	$(M)LOCALEDEF $@
138
dff2e32f3bca 7046316 locale and method shared objects can be built better
jenda
parents: 134
diff changeset
   215
	$(Q)cd $(@D)/32bit; $(LOCALEDEF) $(if $(Q),,-v) -P $(dir $(CC)) -W cc,"$(CFLAGS32)" -L "$(LDFLAGS32)" -x ../../../misc/$(call charmap, $*).x -f ../../$(call charmap, $*).cm -i ../posix.src $*; mv $*.so.3 ../32bit.so.3
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   216
113
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   217
# localedef reads the 32bit library for function definitions
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   218
# and then links against the 64bit library, so we need both 32bit and 64bit versions
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   219
$(LOCALES:%=build/%/64bit.so.3): build/%/64bit.so.3: build/%/posix.src build/%/64bit/.methods_so build/%/64bit/$(MACH64)/.methods_so
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   220
	$(M)LOCALEDEF $@
138
dff2e32f3bca 7046316 locale and method shared objects can be built better
jenda
parents: 134
diff changeset
   221
	$(Q)cd $(@D)/64bit; $(LOCALEDEF) $(if $(Q),,-v) -P $(dir $(CC)) -W cc,"$(CFLAGS64)" -L "$(LDFLAGS64)" -m lp64 -x ../../../misc/$(call charmap, $*).x -f ../../$(call charmap, $*).cm -i ../posix.src $*; mv $*.so.3 ../64bit.so.3
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   222
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   223
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   224
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   225
# ******************
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   226
# ==== Charmaps ====
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   227
# ******************
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   228
130
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   229
$(CHARMAPS:%=build/%.cm): build/%.cm: $(CLDR_TOOLS_DEPS) build/.dir build/.dtd_cache/.src
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   230
	$(M)GENERATE $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   231
	$(Q)$(GEN_CHARMAP) -d $(@D) -c $(call cldr_charmap,$*)
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   232
	$(Q)[ "$(call charmap,$*)" = "$(call cldr_charmap,$*)" ] || mv build/$(call cldr_charmap,$*).cm $@
130
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   233
	# Note: 0x07 and 0x1f514 chars have the same name (<BELL>) - Unicode 6.0 bug?
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   234
	$(Q)perl -i -ne 'print unless /^<BELL>(\s+\\x07)$$/' $@
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   235
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   236
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   237
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   238
# *****************************
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   239
# ==== Other package files ====
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   240
# *****************************
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   241
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   242
# manifest
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   243
$(PKGS:%=build/%/manifest): build/%/manifest: build/%/.dir
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   244
	$(M)GENERATE $@
122
8ff29aae866c fix weak regular expressions (if one key was prefix of another key, the key can be misinterpreted)
jenda
parents: 121
diff changeset
   245
	$(Q)cat $^ | $(PERL) -ne 'print unless $$a{$$_}++' > $@
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   246
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   247
# copyright
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   248
$(FILEROOT)/copyright.cddl+unicode: misc/copyright.cddl+unicode
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   249
	$(Q)[ -d $(@D) ] || mkdir -p $(@D)
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   250
	$(Q)cp $< $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   251
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   252
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   253
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   254
# **********************************************
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   255
# ==== Read params from locale/*.spec files ====
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   256
# **********************************************
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   257
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   258
# FIXME: this section is a bit too tricky ... probably will be rewritten as scripts
132
7e8834a94d06 7011510 CLDR 1.9 ... - fix LC_CTYPE category: generate ctype from cldr/unicode
jenda
parents: 130
diff changeset
   259
cldr_variant = $(call add_platform,$(call add_yesno,$(1)))
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   260
sep = $(call contains,$(1),@,$(comma),@)
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   261
add_platform = $(1)$(call contains,$(1),platform=,,$(call sep,$(1))platform=solaris)
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   262
add_yesno = $(1)$(call contains,$(1),yesno=,,$(call sep,$(1))yesno=solaris)
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   263
122
8ff29aae866c fix weak regular expressions (if one key was prefix of another key, the key can be misinterpreted)
jenda
parents: 121
diff changeset
   264
spec_key = $(if $(shell $(PERL) -ne 'print 1 if /^$(1)\s/' $<),$(shell $(PERL) -ne 'print if s/^$(1)\s+(.*)/\1/' $<),$(2))
8ff29aae866c fix weak regular expressions (if one key was prefix of another key, the key can be misinterpreted)
jenda
parents: 121
diff changeset
   265
spec_key_is_set = $(if $(shell $(PERL) -ne 'print 1 if /^$(1)\s/' $<),\# $(1) is set,)
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   266
spec_fkey = $(addprefix misc/templates/$(1)/,$(spec_key))
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   267
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   268
# if $(1) contains $(2), return $(3) else $(4)
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   269
contains = $(if $(filter-out xx,x$(subst $(1),,$(subst $(2),=-=,$(1))x)),$(3),$(4))
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   270
comma := ,
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   271
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   272
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   273
EXPAND_ENV = LOC=$* \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   274
	     MACH=$(MACH) \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   275
	     MACH64=$(MACH64) \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   276
	     CHARMAP='$(call charmap,$*)' \
111
33aaab5040ad 6900712 [PSARC/2009/528] Remove obsolete short-form locales
hnhn
parents: 109
diff changeset
   277
	     LCMESSAGES='$(call spec_key,lc_messages,default)' \
33aaab5040ad 6900712 [PSARC/2009/528] Remove obsolete short-form locales
hnhn
parents: 109
diff changeset
   278
	     LCTIME='$(call spec_key,lc_time,default)' \
33aaab5040ad 6900712 [PSARC/2009/528] Remove obsolete short-form locales
hnhn
parents: 109
diff changeset
   279
	     IS_SET_LC_MESSAGES='$(call spec_key_is_set,lc_messages)' \
117
fbb3551be55e make ips generates manifests with the same list of files as svr4 prototypes
jenda
parents: 116
diff changeset
   280
	     IS_SET_LC_TIME='$(call spec_key_is_set,lc_time)' \
fbb3551be55e make ips generates manifests with the same list of files as svr4 prototypes
jenda
parents: 116
diff changeset
   281
	     DESCRIPTION='$(shell cat build/$*/pkg_description)'
fbb3551be55e make ips generates manifests with the same list of files as svr4 prototypes
jenda
parents: 116
diff changeset
   282
116
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   283
$(LOCALES:%=build/%/pkg_name): build/%/pkg_name: locale/%.spec build/%/.dir
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   284
	$(M)GENERATE $@
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   285
	$(Q)echo "$(call spec_key,pkg_name,SUNWlang-$(firstword $(subst _, ,$*)))" >$@
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   286
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   287
$(LOCALES:%=build/%/cldr_variant): build/%/cldr_variant: locale/%.spec build/%/.dir
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   288
	$(M)GENERATE $@
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   289
	$(Q)echo "$(call cldr_variant,$(call spec_key,cldr_variant,$(call locale_xxYY,$*)))" > $@
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   290
126
fad75fecd632 fix packages description
jenda
parents: 125
diff changeset
   291
$(LOCALES:%=build/%/pkg_description): build/%/pkg_description: locale/%.spec build/%/locale_description build/%/.dir
117
fbb3551be55e make ips generates manifests with the same list of files as svr4 prototypes
jenda
parents: 116
diff changeset
   292
	$(M)GENERATE $@
126
fad75fecd632 fix packages description
jenda
parents: 125
diff changeset
   293
	$(Q)echo '$(call spec_key,pkg_desc,$(shell $(PERL) -pe "s/,.*/ language support/" build/$*/locale_description))' > $@
117
fbb3551be55e make ips generates manifests with the same list of files as svr4 prototypes
jenda
parents: 116
diff changeset
   294
fbb3551be55e make ips generates manifests with the same list of files as svr4 prototypes
jenda
parents: 116
diff changeset
   295
$(LOCALES:%=build/%/locale_map): build/%/locale_map: locale/%.spec build/%/pkg_description
116
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   296
	$(M)GENERATE $@
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   297
	$(Q)for src in $(call spec_fkey,locale_map,default); do \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   298
		$(EXPAND_ENV) bash -c 'while read l; do eval "echo \"$$l\""; done' < $$src; \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   299
	done > $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   300
116
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   301
$(LOCALES:%=build/%/locale_description): build/%/locale_description: locale/%.spec $(CLDR_TOOLS_DEPS) build/%/cldr_variant build/.dtd_cache/.src
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   302
	$(M)GENERATE $@
122
8ff29aae866c fix weak regular expressions (if one key was prefix of another key, the key can be misinterpreted)
jenda
parents: 121
diff changeset
   303
	$(Q)(if [ -z "$(shell $(PERL) -ne 'print if s/^locale_desc\s+(.*)/\1/' $<)" ] ; then \
116
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   304
			$(GEN_DESCRIPTION) build/cldr_core $(shell cat build/$*/cldr_variant); \
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   305
			echo " ($(call charmap,$*))"; \
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   306
		else \
122
8ff29aae866c fix weak regular expressions (if one key was prefix of another key, the key can be misinterpreted)
jenda
parents: 121
diff changeset
   307
			echo "$(shell $(PERL) -ne 'print if s/^locale_desc\s+(.*)/\1/' $<)"; \
116
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   308
		fi) > $@
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   309
117
fbb3551be55e make ips generates manifests with the same list of files as svr4 prototypes
jenda
parents: 116
diff changeset
   310
$(LOCALES:%=build/%/manifest): build/%/manifest: locale/%.spec build/%/pkg_description
116
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   311
	$(M)GENERATE $@
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   312
	$(Q)for src in $(call spec_fkey,manifest,header_lang utf8); do \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   313
		$(EXPAND_ENV) bash -c 'while read l; do eval "echo \"$$l\""; done' < $$src; \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   314
	done > $@
125
0e6428cfa223 add legacy entry to manifests
jenda
parents: 123
diff changeset
   315
	$(Q)$(PERL) -ne 'print if s/^manifest_raw\s+(.*)/\1/' $< >> $@
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   316
128
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
   317
$(LOCALES:%=build/%/manifest_src): build/%/manifest_src: misc/templates/manifest/src locale/%.spec build/%/pkg_description
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
   318
	$(M)GENERATE $@
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
   319
	$(Q)$(EXPAND_ENV) bash -c 'while read l; do eval "echo \"$$l\""; done' < $< > $@
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
   320
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
   321
$(CHARMAPS:%=build/manifest_charmap_%): build/manifest_charmap_%: misc/templates/manifest/src_charmap locale/*.spec 
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
   322
	$(M)GENERATE $@
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
   323
	$(Q)CHARMAP=$* bash -c 'while read l; do eval "echo \"$$l\""; done' < $< >$@
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
   324
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   325
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   326
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   327
# ********************************
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   328
# ==== Install/Build packages ====
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   329
# ********************************
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   330
133
65086617f925 remove obsolete and broken SVR4 prototype creation tasks from Makefile
jenda
parents: 132
diff changeset
   331
.PHONY: install_ips
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   332
117
fbb3551be55e make ips generates manifests with the same list of files as svr4 prototypes
jenda
parents: 116
diff changeset
   333
install_ips: build/pkgs.d $(PKGS:%=build/%/.installed_ips)
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   334
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   335
128
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
   336
$(LOCALES:%=build/%/.installed): build/%/.installed: build/%/.installed_locale_object_32 build/%/.installed_locale_object_64 build/%/.installed_locale_description build/%/.installed_locale_map build/%/.installed_locale_src
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   337
	$(Q)touch $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   338
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   339
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   340
$(LOCALES:%=build/%/.installed_locale_object_32): build/%/.installed_locale_object_32: build/%/32bit.so.3 $(FILEROOT)/usr/lib/locale/%/.dir
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   341
	$(M)INSTALL $*.so.3
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   342
	$(Q)cp build/$*/32bit.so.3 $(FILEROOT)/usr/lib/locale/$*/$*.so.3
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   343
	$(Q)touch $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   344
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   345
$(LOCALES:%=build/%/.installed_locale_object_64): build/%/.installed_locale_object_64: build/%/64bit.so.3 $(FILEROOT)/usr/lib/locale/%/$(MACH64)/.dir
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   346
	$(M)INSTALL $(MACH64)/$*.so.3
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   347
	$(Q)cp build/$*/64bit.so.3 $(FILEROOT)/usr/lib/locale/$*/$(MACH64)/$*.so.3
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   348
	$(Q)touch $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   349
109
320c2bdeb88b Makefile: fix typo in .installed_locale_description and .installed_locale_map targets
jenda
parents: 108
diff changeset
   350
$(LOCALES:%=build/%/.installed_locale_description): build/%/.installed_locale_description: build/%/locale_description $(FILEROOT)/usr/lib/locale/%/.dir
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   351
	$(M)INSTALL $*/locale_description
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   352
	$(Q)cp build/$*/locale_description $(FILEROOT)/usr/lib/locale/$*/
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   353
	$(Q)touch $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   354
	
109
320c2bdeb88b Makefile: fix typo in .installed_locale_description and .installed_locale_map targets
jenda
parents: 108
diff changeset
   355
$(LOCALES:%=build/%/.installed_locale_map): build/%/.installed_locale_map: build/%/locale_map $(FILEROOT)/usr/lib/locale/%/.dir
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   356
	$(M)INSTALL $*/locale_map
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   357
	$(Q)cp build/$*/locale_map $(FILEROOT)/usr/lib/locale/$*/
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   358
	$(Q)touch $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   359
	
128
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
   360
$(LOCALES:%=build/%/.installed_locale_src): build/%/.installed_locale_src: build/%/posix.src $(FILEROOT)/usr/lib/localedef/src/locales/.dir
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
   361
	$(M)INSTALL $*/locale_src
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
   362
	$(Q)cp $< $(FILEROOT)/usr/lib/localedef/src/locales/$*.src
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
   363
	$(Q)touch $@
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
   364
133
65086617f925 remove obsolete and broken SVR4 prototype creation tasks from Makefile
jenda
parents: 132
diff changeset
   365
$(PKGS:%=build/%/.installed_ips): build/%/.installed_ips: build/%/manifest build/%/.installed $(FILEROOT)/copyright.cddl+unicode pkgmaps/.dir
118
686cb5e09cd5 "ips" and "install_ips" targets copy files and manifests only, new target "pkgsend" publishes pkgs to ips
jenda
parents: 117
diff changeset
   366
	$(M)INSTALL $*/manifest
133
65086617f925 remove obsolete and broken SVR4 prototype creation tasks from Makefile
jenda
parents: 132
diff changeset
   367
	$(Q)cp $< pkgmaps/manifest.$(subst SUNW,,$*)
118
686cb5e09cd5 "ips" and "install_ips" targets copy files and manifests only, new target "pkgsend" publishes pkgs to ips
jenda
parents: 117
diff changeset
   368
	$(Q)touch $@
686cb5e09cd5 "ips" and "install_ips" targets copy files and manifests only, new target "pkgsend" publishes pkgs to ips
jenda
parents: 117
diff changeset
   369
128
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
   370
$(CHARMAPS:%=build/.installed_charmap_%): build/.installed_charmap_%: build/%.cm $(FILEROOT)/usr/lib/localedef/src/charmaps/.dir
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
   371
	$(M)INSTALL charmap $*
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
   372
	$(Q)cp $< $(FILEROOT)/usr/lib/localedef/src/charmaps/$*.charmap
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   373
	$(Q)touch $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   374
128
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
   375
build/.installed_extensions: $(FILEROOT)/usr/lib/localedef/src/extensions/.dir
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
   376
	$(M)INSTALL extensions
142
da26b9f833de 7068147 removing CDDL from copies of source/text files delivered to the binary product
jenda
parents: 138
diff changeset
   377
	$(Q)for fn in misc/*.x; do \
da26b9f833de 7068147 removing CDDL from copies of source/text files delivered to the binary product
jenda
parents: 138
diff changeset
   378
			$(PERL) -ne 'print unless /CDDL HEADER START/ .. /CDDL HEADER END/' $$fn > $(FILEROOT)/usr/lib/localedef/src/extensions/`basename $$fn`; \
da26b9f833de 7068147 removing CDDL from copies of source/text files delivered to the binary product
jenda
parents: 138
diff changeset
   379
		done
da26b9f833de 7068147 removing CDDL from copies of source/text files delivered to the binary product
jenda
parents: 138
diff changeset
   380
128
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
   381
05d36addbcc9 7020024 reintroduce SUNWlocaledefsrc
pavel heimlich - Oracle - Prague Czech Republic <Pavel.Heimlich@Oracle.COM>
parents: 127
diff changeset
   382
build/SUNWlocaledefsrc/.installed: $(LOCALES:%=build/%/.installed_locale_src) $(CHARMAPS:%=build/.installed_charmap_%) build/.installed_extensions
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   383
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   384
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   385
# *********************************
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   386
# ==== Compile the build tools ====
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   387
# *********************************
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   388
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   389
classpath = $(subst $() $(),:,$(filter %.jar,$^))
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   390
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   391
# xalan
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   392
build/xalan/.src: downloads/$(XALAN_SOURCE)
116
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   393
	$(M)UNPACK $(@D)
130
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   394
	$(Q)rm -Rf $(@D)
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   395
	$(Q)$(UNZIP) -u $(if $(Q),-q) -d $(@D) $<
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   396
	$(Q)touch $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   397
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   398
build/xalan.jar: build/xalan/.src
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   399
	$(M)INSTALL $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   400
	$(Q)cp build/xalan/xalan-j_2_7_1/xalan.jar $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   401
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   402
build/xml-apis.jar: build/xalan/.src
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   403
	$(M)INSTALL $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   404
	$(Q)cp build/xalan/xalan-j_2_7_1/xml-apis.jar $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   405
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   406
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   407
# icu4j
130
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   408
build/icu4j/.src: downloads/$(ICU4J_SOURCE) $(wildcard misc/patches/icu4j/*.patch)
116
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   409
	$(M)UNPACK $(@D)
130
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   410
	$(Q)rm -Rf $(@D)
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   411
	$(Q)mkdir $(@D)
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   412
	$(Q)(cd $(@D);  $(GNU_TAR) x$(if $(Q),,v)zf ../../$<)
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   413
	$(M)PATCH icu4j
130
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   414
	$(Q)for a in $(filter %.patch, $(sort $^)); do \
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   415
		echo "   $$a"; \
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   416
		(cd $(@D); $(GNU_PATCH) -p1 $(if $(Q),-s)) < $$a; \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   417
	done
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   418
	$(Q)touch $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   419
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   420
build/icu4j/.compiled: build/icu4j/.src
116
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   421
	$(M)COMPILE $(@D)
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   422
	$(Q)cd $(@D); $(ANT) $(if $(Q),-q) jar cldrUtil
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   423
	$(Q)touch $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   424
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   425
build/utilities.jar: build/icu4j/.compiled
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   426
	$(M)INSTALL $@
130
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   427
	$(Q)cp build/icu4j/out/cldr_util/lib/utilities.jar $@
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   428
	$(Q)touch $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   429
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   430
build/icu4j.jar: build/icu4j/.compiled 
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   431
	$(M)INSTALL $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   432
	$(Q)cp build/icu4j/icu4j.jar $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   433
	$(Q)touch $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   434
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   435
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   436
# cldr_tools
130
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   437
build/cldr_tools/.src: downloads/$(CLDR_TOOLS_SOURCE) $(wildcard misc/patches/cldr_tools/*.patch)
116
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   438
	$(M)UNPACK $(@D)
130
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   439
	$(Q)rm -Rf $(@D)
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   440
	$(Q)$(UNZIP) -u $(if $(Q),-q) -d $(@D) $<
116
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   441
	$(M)PATCH $(@D)
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   442
	$(Q)find $(@D) -type f -exec perl -pi -e 's,\r$$,,' {} \;
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   443
	$(Q)for a in $(filter %.patch, $(sort $^)); do  \
130
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   444
		echo "   $$a"; \
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   445
		(cd $(@D); $(GNU_PATCH) -p1 $(if $(Q),-s)) < $$a; \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   446
	done
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   447
	$(Q)touch $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   448
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   449
build/cldr_tools/.compiled: build/icu4j.jar build/utilities.jar build/xalan.jar build/xml-apis.jar build/cldr_tools/.src
116
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   450
	$(M)COMPILE $(@D)
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   451
	$(Q)cd $(@D)/tools/java; ICU4J_JAR=../../../icu4j.jar UTILITIES_JAR=../../../utilities.jar CLDR_JAR=../../../xalan.jar XML_APIS_JAR=../../../xml-apis.jar $(ANT) $(if $(Q),-q) jar
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   452
	$(Q)touch $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   453
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   454
build/cldr.jar: build/cldr_tools/.compiled 
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   455
	$(M)INSTALL $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   456
	$(Q)cp build/cldr_tools/tools/java/cldr.jar $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   457
	$(Q)touch $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   458
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   459
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   460
# cldr_core
130
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   461
build/cldr_core/.src: downloads/$(CLDR_CORE_SOURCE) $(wildcard misc/patches/cldr_core/*.patch)
116
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   462
	$(M)UNPACK $(@D)
130
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   463
	$(Q)rm -Rf $(@D)
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   464
	$(Q)$(UNZIP) -u $(if $(Q),-q) -d $(@D) $<
116
54bc75ad88c9 minor Makefile reorder and fix small typos in buildlog messages
jenda
parents: 115
diff changeset
   465
	$(M)PATCH $(@D)
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   466
	$(Q)find $(@D) -type f -exec perl -pi -e 's,\r$$,,' {} \;
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   467
	$(Q)for a in $(filter %.patch, $(sort $^)); do  \
130
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   468
		echo "   $$a"; \
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   469
		(cd $(@D); $(GNU_PATCH) -p1 $(if $(Q),-s)) < $$a; \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   470
	done
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   471
	$(Q)touch $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   472
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   473
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   474
# ldump and cmprint 
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   475
build/cmap.c: tools/cmap.pl $(CHARMAPS:%=build/%.cm)
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   476
	$(M)GENERATE $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   477
	$(Q)tools/cmap.pl $(filter %.cm,$^) > $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   478
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   479
build/cmap.o: build/cmap.c
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   480
	$(M)CC $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   481
	$(Q)$(CC) -c -o $@ $<
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   482
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   483
build/%.o: tools/%.c
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   484
	$(M)CC $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   485
	$(Q)$(CC) -c -o $@ $<
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   486
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   487
build/ldump: build/ldump.o build/cmap.o
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   488
	$(M)BUILD $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   489
	$(Q)$(CC) -o $@ $^
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   490
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   491
build/cmprint: build/cmprint.o build/cmap.o
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   492
	$(M)BUILD $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   493
	$(Q)$(CC) -o $@ $^
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   494
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   495
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   496
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   497
# *************************
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   498
# ==== Pack and Unpack ====
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   499
# *************************
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   500
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   501
build/.dtd_cache/.src: downloads/$(CLDR_DTD_SOURCE) build/.dtd_cache/.dir
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   502
	$(M)UNPACK $<
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   503
	$(Q)$(UNZIP) -u $(if $(Q),-q) -d $(@D) $<
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   504
	$(Q)touch $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   505
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   506
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   507
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   508
# ***********************************
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   509
# ==== Download sources from net ====
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   510
# ***********************************
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   511
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   512
downloads/$(CLDR_CORE_SOURCE): downloads/.dir
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   513
	$(M)DOWNLOAD $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   514
	$(Q)if [ -f $(DOWNLOADS)/$(@F) ]; then \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   515
		cp $(DOWNLOADS)/$(@F) $(@D); \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   516
	else \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   517
		$(WGET) $(if $(Q),-q) -O $@ $(CLDR_CORE_SITE); \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   518
	fi
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   519
	$(Q)touch -c $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   520
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   521
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   522
downloads/$(CLDR_TOOLS_SOURCE): downloads/.dir
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   523
	$(M)DOWNLOAD $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   524
	$(Q)if [ -f $(DOWNLOADS)/$(@F) ]; then \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   525
		cp $(DOWNLOADS)/$(@F) $(@D); \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   526
	else \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   527
		$(WGET) $(if $(Q),-q) -O $@ $(CLDR_TOOLS_SITE); \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   528
	fi
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   529
	$(Q)touch -c $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   530
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   531
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   532
downloads/$(ICU4J_SOURCE): downloads/.dir
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   533
	$(M)DOWNLOAD $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   534
	$(Q)if [ -f $(DOWNLOADS)/$(@F) ]; then \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   535
		cp $(DOWNLOADS)/$(@F) $(@D); \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   536
	else \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   537
		$(WGET) $(if $(Q),-q) -O $@ $(ICU4J_SITE); \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   538
	fi
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   539
	$(Q)touch -c $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   540
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   541
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   542
downloads/$(XALAN_SOURCE): downloads/.dir
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   543
	$(M)DOWNLOAD $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   544
	$(Q)if [ -f $(DOWNLOADS)/$(@F) ]; then \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   545
		cp $(DOWNLOADS)/$(@F) $(@D); \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   546
	else \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   547
		$(WGET) $(if $(Q),-q) -O $@ $(XALAN_SITE); \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   548
	fi
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   549
	$(Q)touch -c $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   550
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   551
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   552
# workaround for race condition in org.unicode.cldr.util.CachingEntityResolver
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   553
# - if more than one process use build/.dtd_cache dir, the second process could
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   554
# receive uncomplete dtd and parallel build could fail
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   555
130
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   556
downloads/$(CLDR_DTD_SOURCE): downloads/.dir $(CLDR_TOOLS_DEPS)
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   557
	$(M)DOWNLOAD DTDs
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   558
	$(Q)if [ -f $(DOWNLOADS)/$(@F) ]; then \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   559
		cp $(DOWNLOADS)/$(@F) $(@D); \
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   560
	else \
130
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   561
		mkdir -p build/.dtd_cache; \
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   562
		$(XMLVALIDATOR) build/cldr_core/common/main/en.xml > /dev/null; \
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   563
		$(XMLVALIDATOR) build/cldr_core/common/supplemental/supplementalData.xml > /dev/null; \
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   564
		(cd build/.dtd_cache/; $(ZIP) $(if $(Q),-q) -o ../../$@ *.dtd); \
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   565
	fi
130
66e398a2332f 7011510 CLDR 1.9 locale data integration
jenda
parents: 129
diff changeset
   566
	$(Q)touch $@
108
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   567
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   568
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   569
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   570
# **************
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   571
# ==== Misc ====
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   572
# **************
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   573
%/.dir:
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   574
	$(Q)mkdir -p "$*"
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   575
	$(Q)touch $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   576
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   577
build/report_diff.html: all build/ldump tools/report_diff.pl
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   578
	$(M)GENERATE $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   579
	$(Q)tools/report_diff.pl $(LOCALES) > $@
bdf1f0a15884 re-order and simplify Makefiles - less internal functions, no includes, ...
jenda
parents: 95
diff changeset
   580
113
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   581
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   582
METHODS_SO = methods_unicode.so.3
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   583
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   584
build/.methods_so: build/32bit/.dir build/64bit/.dir
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   585
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   586
ifeq ($(wildcard $(FILEROOT)/usr/lib/locale/common/$(METHODS_SO)),)
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   587
build/.methods_so:
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   588
	$(M)COPY_SYSTEM $(METHODS_SO)
119
ee584b50490d re-make could fail to copy methods_unicode.so, fixed
jenda
parents: 118
diff changeset
   589
	$(Q)cp -f /usr/lib/locale/common/$(METHODS_SO) build/32bit/
ee584b50490d re-make could fail to copy methods_unicode.so, fixed
jenda
parents: 118
diff changeset
   590
	$(Q)cp -f /usr/lib/locale/common/$(MACH64)/$(METHODS_SO) build/64bit/
113
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   591
	$(Q)touch $@
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   592
else
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   593
build/.methods_so: $(FILEROOT)/usr/lib/locale/common/$(METHODS_SO) $(FILEROOT)/usr/lib/locale/common/$(MACH64)/$(METHODS_SO)
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   594
	$(M)COPY $(METHODS_SO)
119
ee584b50490d re-make could fail to copy methods_unicode.so, fixed
jenda
parents: 118
diff changeset
   595
	$(Q)cp -f $(FILEROOT)/usr/lib/locale/common/$(METHODS_SO) build/32bit/
ee584b50490d re-make could fail to copy methods_unicode.so, fixed
jenda
parents: 118
diff changeset
   596
	$(Q)cp -f $(FILEROOT)/usr/lib/locale/common/$(MACH64)/$(METHODS_SO) build/64bit/
113
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   597
	$(Q)touch $@
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   598
endif
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   599
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   600
$(LOCALES:%=build/%/32bit/.methods_so) $(LOCALES:%=build/%/64bit/.methods_so): build/%/.methods_so: build/.methods_so build/%/.dir
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   601
	$(M)LINK $(@D)/$(METHODS_SO)
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   602
	$(Q)rm -f build/$*/$(METHODS_SO)
121
1ef1a0fe5f25 %/.dir target does not work well in parallel build
jenda
parents: 119
diff changeset
   603
	$(Q)cp build/32bit/$(METHODS_SO) build/$*/$(METHODS_SO)
113
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   604
	$(Q)touch $@
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   605
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   606
$(LOCALES:%=build/%/64bit/$(MACH64)/.methods_so): build/%/.methods_so: build/.methods_so build/%/.dir
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   607
	$(M)LINK $(@D)/$(METHODS_SO)
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   608
	$(Q)rm -f build/$*/$(METHODS_SO)
121
1ef1a0fe5f25 %/.dir target does not work well in parallel build
jenda
parents: 119
diff changeset
   609
	$(Q)cp build/64bit/$(METHODS_SO) build/$*/$(METHODS_SO)
113
68608e19b3f8 6972031 build locales against built methods*so, not system's methods*so
hnhn
parents: 111
diff changeset
   610
	$(Q)touch $@