1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval
$(call gb_CustomTarget_CustomTarget
,i18npool
/collator
))
12 i18npool_CODIR
:= $(call gb_CustomTarget_get_workdir
,i18npool
/collator
)
15 $(call gb_Helper_optional_locale
,ca
, \
17 $(call gb_Helper_optional_locale
,dz
, \
19 $(call gb_Helper_optional_locale
,hu
, \
21 $(call gb_Helper_optional_locale
,ja
, \
23 ja_phonetic_alphanumeric_first.txt \
24 ja_phonetic_alphanumeric_last.txt
) \
25 $(if
$(i18npool_ICULT53
), \
26 $(call gb_Helper_optional_locale
,ko
, \
29 $(call gb_Helper_optional_locale
,ku
, \
30 ku_alphanumeric.txt
) \
31 $(call gb_Helper_optional_locale
,ln
, \
33 $(call gb_Helper_optional_locale
,my
, \
35 $(call gb_Helper_optional_locale
,ne
, \
37 $(call gb_Helper_optional_locale
,sid
, \
39 $(call gb_Helper_optional_locale
,zh
, \
49 $(call gb_CustomTarget_get_target
,i18npool
/collator
) : $(SRCDIR
)/i18npool
/CustomTarget_collator.mk \
50 $(i18npool_CODIR
)/lrl_include.hxx
$(foreach txt
,$(i18npool_COTXTS
), \
51 $(patsubst %.txt
,$(i18npool_CODIR
)/collator_
%.
cxx,$(txt
)))
53 $(i18npool_CODIR
)/collator_
%.
cxx : \
54 $(SRCDIR
)/i18npool
/source
/collator
/data
/%.txt \
55 $(call gb_Executable_get_runtime_dependencies
,gencoll_rule
) \
56 |
$(i18npool_CODIR
)/.
dir
57 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),CLR
,1)
58 $(call gb_Helper_abbreviate_dirs
, \
59 $(call gb_Helper_execute
,gencoll_rule
) $< $@
$*)
61 $(i18npool_CODIR
)/lrl_include.hxx
: $(SRCDIR
)/i18npool
/CustomTarget_collator.mk \
62 $(SRCDIR
)/i18npool
/source
/collator
/data |
$(i18npool_CODIR
)/.
dir
63 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
64 echo
'#define LOCAL_RULE_LANGS "$(sort $(foreach txt,$(i18npool_COTXTS), \
65 $(firstword $(subst _, ,$(txt)))))"' > $@
67 # vim: set noet sw=4 ts=4: