1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2 # Version: MPL 1.1 / GPLv3+ / LGPLv3+
4 # The contents of this file are subject to the Mozilla Public License Version
5 # 1.1 (the "License"); you may not use this file except in compliance with
6 # the License or as specified alternatively below. You may obtain a copy of
7 # the License at http://www.mozilla.org/MPL/
9 # Software distributed under the License is distributed on an "AS IS" basis,
10 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 # for the specific language governing rights and limitations under the
14 # The Initial Developer of the Original Code is
15 # Matúš Kukan <matus.kukan@gmail.com>
16 # Portions created by the Initial Developer are Copyright (C) 2011 the
17 # Initial Developer. All Rights Reserved.
19 # Major Contributor(s):
21 # For minor contributions see the git repository.
23 # Alternatively, the contents of this file may be used under the terms of
24 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
25 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
26 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
27 # instead of those above.
29 $(eval
$(call gb_CustomTarget_CustomTarget
,i18npool
/collator
))
31 i18npool_CODIR
:= $(call gb_CustomTarget_get_workdir
,i18npool
/collator
)
37 ja_phonetic_alphanumeric_first.txt \
38 ja_phonetic_alphanumeric_last.txt \
53 $(call gb_CustomTarget_get_target
,i18npool
/collator
) : $(SRCDIR
)/i18npool
/CustomTarget_collator.mk \
54 $(i18npool_CODIR
)/lrl_include.hxx
$(foreach txt
,$(i18npool_COTXTS
), \
55 $(patsubst %.txt
,$(i18npool_CODIR
)/collator_
%.
cxx,$(txt
)))
57 $(i18npool_CODIR
)/collator_
%.
cxx : \
58 $(SRCDIR
)/i18npool
/source
/collator
/data
/%.txt \
59 $(call gb_Executable_get_target_for_build
,gencoll_rule
) \
60 |
$(i18npool_CODIR
)/.
dir
61 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),CLR
,1)
62 $(call gb_Helper_abbreviate_dirs
, \
63 $(call gb_Helper_execute
,gencoll_rule
) $< $@
$*)
65 $(i18npool_CODIR
)/lrl_include.hxx
: \
66 $(SRCDIR
)/i18npool
/source
/collator
/data |
$(i18npool_CODIR
)/.
dir
67 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
68 echo
'#define LOCAL_RULE_LANGS "$(sort $(foreach txt,$(i18npool_COTXTS), \
69 $(firstword $(subst _, ,$(txt)))))"' > $@
71 # vim: set noet sw=4 ts=4: