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
,vro
, \
40 vro_alphanumeric.txt
) \
41 $(call gb_Helper_optional_locale
,zh
, \
51 $(call gb_CustomTarget_get_target
,i18npool
/collator
) : $(SRCDIR
)/i18npool
/CustomTarget_collator.mk \
52 $(i18npool_CODIR
)/lrl_include.hxx
$(foreach txt
,$(i18npool_COTXTS
), \
53 $(patsubst %.txt
,$(i18npool_CODIR
)/collator_
%.
cxx,$(txt
)))
55 $(i18npool_CODIR
)/collator_
%.
cxx : \
56 $(SRCDIR
)/i18npool
/source
/collator
/data
/%.txt \
57 $(call gb_Executable_get_runtime_dependencies
,gencoll_rule
) \
58 |
$(i18npool_CODIR
)/.
dir
59 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),CLR
,1)
60 $(call gb_Trace_StartRange
,$(subst $(WORKDIR
)/,,$@
),CLR
)
61 $(call gb_Helper_abbreviate_dirs
, \
62 $(call gb_Helper_execute
,gencoll_rule
) $< $@
$*)
63 $(call gb_Trace_EndRange
,$(subst $(WORKDIR
)/,,$@
),CLR
)
65 $(i18npool_CODIR
)/lrl_include.hxx
: $(SRCDIR
)/i18npool
/CustomTarget_collator.mk \
66 $(SRCDIR
)/i18npool
/source
/collator
/data |
$(i18npool_CODIR
)/.
dir
67 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
68 $(call gb_Trace_StartRange
,$(subst $(WORKDIR
)/,,$@
),ECH
)
69 echo
'constexpr OUStringLiteral LOCAL_RULE_LANGS = u"$(sort $(foreach txt,$(i18npool_COTXTS), \
70 $(firstword $(subst _, ,$(txt)))))";' > $@
71 $(call gb_Trace_EndRange
,$(subst $(WORKDIR
)/,,$@
),ECH
)
73 # vim: set noet sw=4 ts=4: