summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2019-07-08 08:55:06 +0000
committerMiklos Vajna <vmiklos@collabora.com>2019-07-08 13:57:11 +0200
commit460461ae4244ef034c5579d6452dda6e8bda49e4 (patch)
tree73d6db48305d3f7b7bbcf19757e9dd5a68ea4fea /solenv
parentac870a45ffde14cfdf4406df16d6bb51d08bc171 (diff)
Fix gbuildtojson target
The gbuildtojson target re-defines a lot of Make defines, including gb_Module_add_moduledir, so gb_Module__add_moduledir_impl needs at least the same fix then gb_Module__modulefile to work correctly with multiple directory levels. Regression from commit 368c996b24e0 ("Make font-based unit test depend on instdir fonts"). Change-Id: I281389a79e064829db6f1231951b233ea0a7371c Reviewed-on: https://gerrit.libreoffice.org/75197 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/extensions/post_GbuildToJson.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/solenv/gbuild/extensions/post_GbuildToJson.mk b/solenv/gbuild/extensions/post_GbuildToJson.mk
index c80a662f46c8..a14f6a9145e3 100644
--- a/solenv/gbuild/extensions/post_GbuildToJson.mk
+++ b/solenv/gbuild/extensions/post_GbuildToJson.mk
@@ -189,7 +189,7 @@ gb_Module_add_l10n_target =
gb_GbuildToJson_BLACKLISTEDMODULES := cli_ure jurt external
define gb_Module__add_moduledir_impl
-include $(patsubst $(1):%,%,$(filter $(1):%,$(gb_Module_MODULELOCATIONS)))/$(2)/Module_$(2).mk
+include $(patsubst $(1):%,%,$(filter $(1):%,$(gb_Module_MODULELOCATIONS)))/$(2)/Module_$(notdir $(2)).mk
$(call gb_Module_get_target,$(1)) : $$(firstword $$(gb_Module_TARGETSTACK))
gb_Module_TARGETSTACK := $$(wordlist 2,$$(words $$(gb_Module_TARGETSTACK)),$$(gb_Module_TARGETSTACK))