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
,extras
/gallsysstr
))
12 # bullets, fontwork symbolshapes not listed in ulf/not currently enabled for translation
13 $(eval
$(call gb_CustomTarget_register_targets
,extras
/gallsysstr
,\
14 $(addsuffix .str
,$(filter-out bullets fontwork symbolshapes
,$(system_galleries
))) \
17 $(eval
$(call gb_CustomTarget_ulfex_rule
,\
18 $(gb_CustomTarget_workdir
)/extras
/gallsysstr
/extras_gallsystem.ulf
,\
19 $(SRCDIR
)/extras
/source
/gallery
/share
/gallery_names.ulf
,\
20 $(foreach lang
,$(gb_TRANS_LANGS
),\
21 $(gb_POLOCATION
)/$(lang
)/extras
/source
/gallery
/share.po
)))
23 # desktop-translate.py is ugly af/doesn't play nice with make dependencies.
24 # It expects the target filename to exist and modifies it, so do the hack with own
26 $(gb_CustomTarget_workdir
)/extras
/gallsysstr
/%.str
: \
27 $(gb_CustomTarget_workdir
)/extras
/gallsysstr
/extras_gallsystem.ulf \
28 $(SRCDIR
)/extras
/source
/gallery
/gallery_system
/dummy.str \
29 $(call gb_ExternalExecutable_get_dependencies
,python
) \
30 $(SRCDIR
)/solenv
/bin
/desktop-translate.py
31 mkdir
-p
$(@D
)/$* && cp
$(SRCDIR
)/extras
/source
/gallery
/gallery_system
/dummy.str
$(@D
)/$*/$*.str
&& \
32 $(call gb_ExternalExecutable_get_command
,python
) $(SRCDIR
)/solenv
/bin
/desktop-translate.py \
33 --ext
"str" -d
$(@D
)/$*/ $(@D
)/extras_gallsystem.ulf
&& \
36 # vim: set noet sw=4 ts=4: