Bump version to 4.1-6
[LibreOffice.git] / i18npool / CustomTarget_collator.mk
blob04527bb613d7ff1c6b65d018ca4849449bdf67f9
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)
13 i18npool_COTXTS := \
14 ca_charset.txt \
15 dz_charset.txt \
16 hu_charset.txt \
17 ja_charset.txt \
18 ja_phonetic_alphanumeric_first.txt \
19 ja_phonetic_alphanumeric_last.txt \
20 ko_charset.txt \
21 ku_alphanumeric.txt \
22 ln_charset.txt \
23 my_dictionary.txt \
24 ne_charset.txt \
25 sid_charset.txt \
26 zh_charset.txt \
27 zh_pinyin.txt \
28 zh_radical.txt \
29 zh_stroke.txt \
30 zh_TW_charset.txt \
31 zh_TW_radical.txt \
32 zh_TW_stroke.txt \
33 zh_zhuyin.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: