Makefile
author jenda
Fri, 28 Aug 2009 21:06:51 +0200
changeset 38 ea0937345b04
parent 36 c090aef875c1
child 39 c5b6ab4a9ae5
permissions -rw-r--r--
add 'make ips' target
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
     1
#
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
     2
# CDDL HEADER START
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
     3
#
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").  
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
     7
#
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
#
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
1db559ddf29a add and/or fix CDDL headers
jenda
parents: 26
diff changeset
    23
#
0
ab8dc3de97cd extension of locale data build process - build locale data from CLDR directly
jenda
parents:
diff changeset
    24
30
a1878e39c19f aesthetic adjustments in makefiles
jenda
parents: 29
diff changeset
    25
include config.mk
a1878e39c19f aesthetic adjustments in makefiles
jenda
parents: 29
diff changeset
    26
26
cade4546c172 migrate from g11n-oso to standalone ws and from ccs/make to gnu make
jenda
parents: 24
diff changeset
    27
30
a1878e39c19f aesthetic adjustments in makefiles
jenda
parents: 29
diff changeset
    28
# To put more focus on warnings, be less verbose as default
a1878e39c19f aesthetic adjustments in makefiles
jenda
parents: 29
diff changeset
    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
a1878e39c19f aesthetic adjustments in makefiles
jenda
parents: 29
diff changeset
    39
# list of all locales
a1878e39c19f aesthetic adjustments in makefiles
jenda
parents: 29
diff changeset
    40
LOCALES = $(basename $(notdir $(wildcard locale/*.spec)))
a1878e39c19f aesthetic adjustments in makefiles
jenda
parents: 29
diff changeset
    41
a1878e39c19f aesthetic adjustments in makefiles
jenda
parents: 29
diff changeset
    42
a1878e39c19f aesthetic adjustments in makefiles
jenda
parents: 29
diff changeset
    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
7cc46f678236 add pkg_name key
jenda
parents: 31
diff changeset
    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
7cc46f678236 add pkg_name key
jenda
parents: 31
diff changeset
    53
all: $(LOCALES:%=locale/32/%.so.3) $(LOCALES:%=locale/64/%.so.3) pkgmaps
8
44f8eb36a5e1 locele_cldr: fix minor makefile bugs
jenda
parents: 6
diff changeset
    54
38
ea0937345b04 add 'make ips' target
jenda
parents: 36
diff changeset
    55
install: prototypes
31
4494cec780b5 add install target to Makefile
jenda
parents: 30
diff changeset
    56
21
beb42eb72563 add collation compare test
jenda
parents: 20
diff changeset
    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
ea0937345b04 add 'make ips' target
jenda
parents: 36
diff changeset
    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
7cc46f678236 add pkg_name key
jenda
parents: 31
diff changeset
    69
include pkgmaps/make.mk
7cc46f678236 add pkg_name key
jenda
parents: 31
diff changeset
    70
7cc46f678236 add pkg_name key
jenda
parents: 31
diff changeset
    71
clean: 
7cc46f678236 add pkg_name key
jenda
parents: 31
diff changeset
    72
	$(call cmd,clean)