CWS gnumake2: added moduledir support

This commit is contained in:
Bjoern Michaelsen 2010-06-26 01:35:01 +02:00
parent caa00f1f15
commit 217d28be3a
2 changed files with 10 additions and 2 deletions

View file

@ -27,7 +27,7 @@
$(eval $(call gb_Module_Module,ooo))
$(eval $(call gb_Module_add_targets,ooo,$(foreach module,\
$(eval $(call gb_Module_add_moduledirs,ooo,\
framework \
sfx2 \
svl \
@ -36,6 +36,6 @@ $(eval $(call gb_Module_add_targets,ooo,$(foreach module,\
sw \
toolkit \
tools \
,$(module)/Module_$(module))))
))
# vim: set noet ts=4 sw=4:

View file

@ -64,10 +64,18 @@ gb_Module_CLEANTARGETSTACK := $$(wordlist 2,$$(words $$(gb_Module_CLEANTARGETSTA
endef
define gb_Module_add_moduledir
$(call gb_Module_add_target,$(1),$(2)/Module_$(2))
endef
define gb_Module_add_targets
$(foreach target,$(2),$(call gb_Module_add_target,$(1),$(target)))
endef
define gb_Module_add_moduledirs
$(foreach target,$(2),$(call gb_Module_add_moduledir,$(1),$(target)))
endef
define gb_Module_make_global_targets
gb_Module_CURRENTMODULELOCATION := $$(dir $$(realpath $$(firstword $(MAKEFILE_LIST))))
ifneq ($(1),)