author | jenda |
Fri, 28 Aug 2009 21:06:51 +0200 | |
changeset 38 | ea0937345b04 |
parent 36 | c090aef875c1 |
child 39 | c5b6ab4a9ae5 |
permissions | -rw-r--r-- |
0
ab8dc3de97cd
extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff
changeset
|
1 |
# |
ab8dc3de97cd
extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
ab8dc3de97cd
extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff
changeset
|
3 |
# |
ab8dc3de97cd
extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
ab8dc3de97cd
extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
ab8dc3de97cd
extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
ab8dc3de97cd
extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff
changeset
|
7 |
# |
29 | 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 | 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 |
# |
26
cade4546c172
migrate from g11n-oso to standalone ws and from ccs/make to gnu make
jenda
parents:
24
diff
changeset
|
21 |
# Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
0
ab8dc3de97cd
extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff
changeset
|
22 |
# Use is subject to license terms. |
29 | 23 |
# |
0
ab8dc3de97cd
extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff
changeset
|
24 |
|
30 | 25 |
include config.mk |
26 |
||
26
cade4546c172
migrate from g11n-oso to standalone ws and from ccs/make to gnu make
jenda
parents:
24
diff
changeset
|
27 |
|
30 | 28 |
# To put more focus on warnings, be less verbose as default |
29 |
# Use 'make V=1' to see the full commands |
|
26
cade4546c172
migrate from g11n-oso to standalone ws and from ccs/make to gnu make
jenda
parents:
24
diff
changeset
|
30 |
ifeq ($V,1) |
cade4546c172
migrate from g11n-oso to standalone ws and from ccs/make to gnu make
jenda
parents:
24
diff
changeset
|
31 |
cmd = $(cmd_$(1)) |
cade4546c172
migrate from g11n-oso to standalone ws and from ccs/make to gnu make
jenda
parents:
24
diff
changeset
|
32 |
Q = |
cade4546c172
migrate from g11n-oso to standalone ws and from ccs/make to gnu make
jenda
parents:
24
diff
changeset
|
33 |
else |
cade4546c172
migrate from g11n-oso to standalone ws and from ccs/make to gnu make
jenda
parents:
24
diff
changeset
|
34 |
cmd = @echo ' $(quiet_cmd_$(1))' && $(cmd_$(1)) |
cade4546c172
migrate from g11n-oso to standalone ws and from ccs/make to gnu make
jenda
parents:
24
diff
changeset
|
35 |
Q = @ |
cade4546c172
migrate from g11n-oso to standalone ws and from ccs/make to gnu make
jenda
parents:
24
diff
changeset
|
36 |
endif |
5
63aec4025526
locale_cldr: move list of generated locales (and variants) from Makefile to locale.list
jenda
parents:
4
diff
changeset
|
37 |
|
0
ab8dc3de97cd
extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff
changeset
|
38 |
|
30 | 39 |
# list of all locales |
40 |
LOCALES = $(basename $(notdir $(wildcard locale/*.spec))) |
|
41 |
||
42 |
||
43 |
||
26
cade4546c172
migrate from g11n-oso to standalone ws and from ccs/make to gnu make
jenda
parents:
24
diff
changeset
|
44 |
quiet_cmd_clean = CLEAN |
cade4546c172
migrate from g11n-oso to standalone ws and from ccs/make to gnu make
jenda
parents:
24
diff
changeset
|
45 |
cmd_clean = $(RM) -Rf $(CLEAN) |
cade4546c172
migrate from g11n-oso to standalone ws and from ccs/make to gnu make
jenda
parents:
24
diff
changeset
|
46 |
quiet_cmd_unzip = UNZIP $< |
cade4546c172
migrate from g11n-oso to standalone ws and from ccs/make to gnu make
jenda
parents:
24
diff
changeset
|
47 |
cmd_unzip = $(RM) -Rf $(@D); $(UNZIP) -q $< -d $(@D) |
cade4546c172
migrate from g11n-oso to standalone ws and from ccs/make to gnu make
jenda
parents:
24
diff
changeset
|
48 |
quiet_cmd_patch = PATCH $(basename $(@D)) |
cade4546c172
migrate from g11n-oso to standalone ws and from ccs/make to gnu make
jenda
parents:
24
diff
changeset
|
49 |
cmd_patch = for a in $(filter %.patch, $(sort $^)); do (cd $(@D); $(GNU_PATCH) -p1 $(if $(Q),-s)) < $$a; done |
0
ab8dc3de97cd
extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff
changeset
|
50 |
|
34 | 51 |
.PHONY: all install doc clean |
0
ab8dc3de97cd
extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff
changeset
|
52 |
|
34 | 53 |
all: $(LOCALES:%=locale/32/%.so.3) $(LOCALES:%=locale/64/%.so.3) pkgmaps |
8 | 54 |
|
38 | 55 |
install: prototypes |
31 | 56 |
|
21 | 57 |
doc: diffs.html $(LOCALES:%=collation_test/%.diff) |
0
ab8dc3de97cd
extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff
changeset
|
58 |
|
ab8dc3de97cd
extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff
changeset
|
59 |
|
38 | 60 |
|
26
cade4546c172
migrate from g11n-oso to standalone ws and from ccs/make to gnu make
jenda
parents:
24
diff
changeset
|
61 |
%/.dir: |
cade4546c172
migrate from g11n-oso to standalone ws and from ccs/make to gnu make
jenda
parents:
24
diff
changeset
|
62 |
$(Q)rm -Rf $*; mkdir -p $* |
cade4546c172
migrate from g11n-oso to standalone ws and from ccs/make to gnu make
jenda
parents:
24
diff
changeset
|
63 |
$(Q)touch $@ |
0
ab8dc3de97cd
extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff
changeset
|
64 |
|
26
cade4546c172
migrate from g11n-oso to standalone ws and from ccs/make to gnu make
jenda
parents:
24
diff
changeset
|
65 |
include downloads/make.mk |
cade4546c172
migrate from g11n-oso to standalone ws and from ccs/make to gnu make
jenda
parents:
24
diff
changeset
|
66 |
include jars/make.mk |
cade4546c172
migrate from g11n-oso to standalone ws and from ccs/make to gnu make
jenda
parents:
24
diff
changeset
|
67 |
include locale/make.mk |
cade4546c172
migrate from g11n-oso to standalone ws and from ccs/make to gnu make
jenda
parents:
24
diff
changeset
|
68 |
include tools/make.mk |
34 | 69 |
include pkgmaps/make.mk |
70 |
||
71 |
clean: |
|
72 |
$(call cmd,clean) |