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
)
18 ja_phonetic_alphanumeric_first.txt \
19 ja_phonetic_alphanumeric_last.txt \
35 $(call gb_CustomTarget_get_target
,i18npool
/collator
) : $(SRCDIR
)/i18npool
/CustomTarget_collator.mk \
36 $(i18npool_CODIR
)/lrl_include.hxx
$(foreach txt
,$(i18npool_COTXTS
), \
37 $(patsubst %.txt
,$(i18npool_CODIR
)/collator_
%.
cxx,$(txt
)))
39 $(i18npool_CODIR
)/collator_
%.
cxx : \
40 $(SRCDIR
)/i18npool
/source
/collator
/data
/%.txt \
41 $(call gb_Executable_get_runtime_dependencies
,gencoll_rule
) \
42 |
$(i18npool_CODIR
)/.
dir
43 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),CLR
,1)
44 $(call gb_Helper_abbreviate_dirs
, \
45 $(call gb_Helper_execute
,gencoll_rule
) $< $@
$*)
47 $(i18npool_CODIR
)/lrl_include.hxx
: \
48 $(SRCDIR
)/i18npool
/source
/collator
/data |
$(i18npool_CODIR
)/.
dir
49 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
50 echo
'#define LOCAL_RULE_LANGS "$(sort $(foreach txt,$(i18npool_COTXTS), \
51 $(firstword $(subst _, ,$(txt)))))"' > $@
53 # vim: set noet sw=4 ts=4: