Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / i18npool / CustomTarget_indexentry.mk
blobbec83aacf5e3dc502b9306abe40b829d21d5e5cc
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/indexentry))
12 i18npool_IDXTXTS := \
13 indexdata_ko_dict.txt \
14 indexdata_zh_pinyin.txt \
15 indexdata_zh_radical.txt \
16 indexdata_zh_stroke.txt \
17 indexdata_zh_TW_radical.txt \
18 indexdata_zh_TW_stroke.txt \
19 indexdata_zh_zhuyin.txt \
20 ko_phonetic.txt \
21 zh_pinyin.txt \
22 zh_zhuyin.txt
24 $(call gb_CustomTarget_get_target,i18npool/indexentry) : $(SRCDIR)/i18npool/CustomTarget_indexentry.mk \
25 $(patsubst %.txt,$(call gb_CustomTarget_get_workdir,i18npool/indexentry)/%.cxx,$(i18npool_IDXTXTS))
27 $(call gb_CustomTarget_get_workdir,i18npool/indexentry)/%.cxx : \
28 $(SRCDIR)/i18npool/source/indexentry/data/%.txt \
29 $(call gb_Executable_get_runtime_dependencies,genindex_data) \
30 | $(call gb_CustomTarget_get_workdir,i18npool/indexentry)/.dir
31 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),IND,1)
32 $(call gb_Helper_abbreviate_dirs, \
33 $(call gb_Helper_execute,genindex_data) $< $@.tmp $* && \
34 sed 's/\(^.*get_\)/SAL_DLLPUBLIC_EXPORT \1/' $@.tmp > $@ && \
35 rm $@.tmp)
37 # vim: set noet sw=4 ts=4: