Bump for 4.0-15
[LibreOffice.git] / i18npool / CustomTarget_indexentry.mk
blob03a8ff54b36a8a30c593fe67e9ec4d593e0bb405
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2 # Version: MPL 1.1 / GPLv3+ / LGPLv3+
4 # The contents of this file are subject to the Mozilla Public License Version
5 # 1.1 (the "License"); you may not use this file except in compliance with
6 # the License or as specified alternatively below. You may obtain a copy of
7 # the License at http://www.mozilla.org/MPL/
9 # Software distributed under the License is distributed on an "AS IS" basis,
10 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 # for the specific language governing rights and limitations under the
12 # License.
14 # The Initial Developer of the Original Code is
15 # Matúš Kukan <matus.kukan@gmail.com>
16 # Portions created by the Initial Developer are Copyright (C) 2011 the
17 # Initial Developer. All Rights Reserved.
19 # Major Contributor(s):
21 # For minor contributions see the git repository.
23 # Alternatively, the contents of this file may be used under the terms of
24 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
25 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
26 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
27 # instead of those above.
29 $(eval $(call gb_CustomTarget_CustomTarget,i18npool/indexentry))
31 i18npool_IDXTXTS := \
32 indexdata_ko_dict.txt \
33 indexdata_zh_pinyin.txt \
34 indexdata_zh_radical.txt \
35 indexdata_zh_stroke.txt \
36 indexdata_zh_TW_radical.txt \
37 indexdata_zh_TW_stroke.txt \
38 indexdata_zh_zhuyin.txt \
39 ko_phonetic.txt \
40 zh_pinyin.txt \
41 zh_zhuyin.txt
43 $(call gb_CustomTarget_get_target,i18npool/indexentry) : $(SRCDIR)/i18npool/CustomTarget_indexentry.mk \
44 $(patsubst %.txt,$(call gb_CustomTarget_get_workdir,i18npool/indexentry)/%.cxx,$(i18npool_IDXTXTS))
46 $(call gb_CustomTarget_get_workdir,i18npool/indexentry)/%.cxx : \
47 $(SRCDIR)/i18npool/source/indexentry/data/%.txt \
48 $(call gb_Executable_get_target_for_build,genindex_data) \
49 | $(call gb_CustomTarget_get_workdir,i18npool/indexentry)/.dir
50 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),IND,1)
51 $(call gb_Helper_abbreviate_dirs, \
52 $(call gb_Helper_execute,genindex_data) $< $@.tmp $* && \
53 sed 's/\(^.*get_\)/SAL_DLLPUBLIC_EXPORT \1/' $@.tmp > $@ && \
54 rm $@.tmp)
56 # vim: set noet sw=4 ts=4: