bump product version to 4.1.6.2
[LibreOffice.git] / shell / CustomTarget_shlxthdl_res.mk
blob6df6008b17d31bc09da5b6e586ce55df35e3ac46
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,shell/source/win32/shlxthandler/res))
12 $(eval $(call gb_CustomTarget_register_targets,shell/source/win32/shlxthandler/res,\
13 shlxthdl.ulf \
14 shlxthdl_impl.rc \
17 $(call gb_CustomTarget_get_workdir,shell/source/win32/shlxthandler/res)/shlxthdl_impl.rc : \
18 $(call gb_CustomTarget_get_workdir,shell/source/win32/shlxthandler/res)/shlxthdl.ulf \
19 $(SRCDIR)/shell/source/win32/shlxthandler/res/rcfooter.txt \
20 $(SRCDIR)/shell/source/win32/shlxthandler/res/rcheader.txt \
21 $(SRCDIR)/shell/source/win32/shlxthandler/res/rctmpl.txt \
22 $(call gb_Executable_get_runtime_dependencies,lngconvex)
23 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),LCX,1)
24 $(call gb_Helper_abbreviate_dirs,\
25 cd $(SRCDIR)/shell/source/win32/shlxthandler/res && \
26 BRAND_BASE_DIR=$(call gb_Helper_make_url,$(OUTDIR)/unittest/install) \
27 $(call gb_Executable_get_command,lngconvex) \
28 -ulf $< \
29 -rc $@ \
30 -rct rctmpl.txt \
31 -rch rcheader.txt \
32 -rcf rcfooter.txt)
34 $(call gb_CustomTarget_get_workdir,shell/source/win32/shlxthandler/res)/shlxthdl.ulf : \
35 $(SRCDIR)/shell/source/win32/shlxthandler/res/shlxthdl.ulf \
36 $(call gb_Executable_get_runtime_dependencies,ulfex)
37 MERGEINPUT=`$(gb_MKTEMP)` && \
38 echo $(foreach lang,$(gb_TRANS_LANGS),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(subst $(SRCDIR)/,,$(dir $<))).po) > $${MERGEINPUT} && \
39 $(call gb_Executable_get_command,ulfex) -i $< -o $@ -m $${MERGEINPUT} -l all && \
40 rm -f $${MERGEINPUT}
42 # vim: set shiftwidth=4 tabstop=4 noexpandtab: