Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / i18npool / CustomTarget_textconversion.mk
blob30dc2d7672441fdfde9bca88e31ddb6574a02d54
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/textconversion))
31 $(call gb_CustomTarget_get_target,i18npool/textconversion) : \
32 $(patsubst %.dic,$(call gb_CustomTarget_get_workdir,i18npool/textconversion)/%.cxx,$(notdir \
33 $(wildcard $(SRCDIR)/i18npool/source/textconversion/data/*.dic)))
35 $(call gb_CustomTarget_get_workdir,i18npool/textconversion)/%.cxx : \
36 $(SRCDIR)/i18npool/source/textconversion/data/%.dic \
37 $(call gb_Executable_get_target_for_build,genconv_dict) \
38 | $(call gb_CustomTarget_get_workdir,i18npool/textconversion)/.dir
39 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),CDC,1)
40 $(call gb_Helper_abbreviate_dirs, \
41 $(call gb_Helper_execute,genconv_dict) $* $< $@.tmp && \
42 sed 's/\(^.*get\)/SAL_DLLPUBLIC_EXPORT \1/' $@.tmp > $@ && \
43 rm $@.tmp)
45 # vim: set noet sw=4 ts=4: