Update git submodules
[LibreOffice.git] / i18npool / CustomTarget_localedata.mk
blob5a6b677c8099aae2f48e31d51ba6bd54dc6d1505
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/localedata))
12 i18npool_LD_NAMES := $(basename $(notdir $(wildcard $(SRCDIR)/i18npool/source/localedata/data/*.xml)))
14 $(eval $(call gb_CustomTarget_register_targets,i18npool/localedata,\
15 $(foreach name,$(i18npool_LD_NAMES),localedata_$(name).cxx) \
18 $(gb_CustomTarget_workdir)/i18npool/localedata/localedata_%_new.cxx : \
19 $(SRCDIR)/i18npool/source/localedata/data/%.xml \
20 $(call gb_Executable_get_runtime_dependencies,saxparser)
21 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),SAX,1)
22 $(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),SAX)
23 $(call gb_Helper_abbreviate_dirs, \
24 $(call gb_Helper_print_on_error, \
25 $(call gb_Helper_execute,saxparser) $* $< $@ \
26 -env:LO_LIB_DIR=$(call gb_Helper_make_url,$(INSTROOT_FOR_BUILD)/$(LIBO_LIB_FOLDER)) \
27 -env:URE_MORE_SERVICES=$(call gb_Helper_make_url,$(call gb_Rdb_get_target_for_build,saxparser))))
28 $(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),SAX)
30 .PRECIOUS: $(gb_CustomTarget_workdir)/i18npool/localedata/localedata_%_new.cxx
31 $(gb_CustomTarget_workdir)/i18npool/localedata/localedata_%.cxx : \
32 $(gb_CustomTarget_workdir)/i18npool/localedata/localedata_%_new.cxx
33 $(call gb_Helper_copy_if_different_and_touch,$<,$@)
35 # vim: set noet sw=4 ts=4: