summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--framework/Makefile3
-rw-r--r--sfx2/Makefile3
-rw-r--r--xmloff/Makefile3
3 files changed, 3 insertions, 6 deletions
diff --git a/framework/Makefile b/framework/Makefile
index 45de5eecabc0..b7391a8db240 100644
--- a/framework/Makefile
+++ b/framework/Makefile
@@ -30,10 +30,9 @@ $(error No environment set!)
endif
gb_PARTITIALBUILD := T
-include $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/../SourcePath.mk
GBUILDDIR := $(SOLARENV)/gbuild
include $(GBUILDDIR)/gbuild.mk
-$(eval $(call gb_Module_make_global_targets,$(foreach module,$(lastword $(subst /, ,$(dir $(realpath $(firstword $(MAKEFILE_LIST)))))),$(CURRENTREPO)/$(module)/Module_$(module).mk)))
+$(eval $(call gb_Module_make_global_targets,$(shell ls $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/Module*.mk)))
# vim: set noet sw=4 ts=4:
diff --git a/sfx2/Makefile b/sfx2/Makefile
index 45de5eecabc0..b7391a8db240 100644
--- a/sfx2/Makefile
+++ b/sfx2/Makefile
@@ -30,10 +30,9 @@ $(error No environment set!)
endif
gb_PARTITIALBUILD := T
-include $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/../SourcePath.mk
GBUILDDIR := $(SOLARENV)/gbuild
include $(GBUILDDIR)/gbuild.mk
-$(eval $(call gb_Module_make_global_targets,$(foreach module,$(lastword $(subst /, ,$(dir $(realpath $(firstword $(MAKEFILE_LIST)))))),$(CURRENTREPO)/$(module)/Module_$(module).mk)))
+$(eval $(call gb_Module_make_global_targets,$(shell ls $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/Module*.mk)))
# vim: set noet sw=4 ts=4:
diff --git a/xmloff/Makefile b/xmloff/Makefile
index 45de5eecabc0..b7391a8db240 100644
--- a/xmloff/Makefile
+++ b/xmloff/Makefile
@@ -30,10 +30,9 @@ $(error No environment set!)
endif
gb_PARTITIALBUILD := T
-include $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/../SourcePath.mk
GBUILDDIR := $(SOLARENV)/gbuild
include $(GBUILDDIR)/gbuild.mk
-$(eval $(call gb_Module_make_global_targets,$(foreach module,$(lastword $(subst /, ,$(dir $(realpath $(firstword $(MAKEFILE_LIST)))))),$(CURRENTREPO)/$(module)/Module_$(module).mk)))
+$(eval $(call gb_Module_make_global_targets,$(shell ls $(dir $(realpath $(firstword $(MAKEFILE_LIST))))/Module*.mk)))
# vim: set noet sw=4 ts=4: