gbuild: add target rules for all modules

This allows to run e.g. make UIConfig to automatically run make
UIConfig_<module> for all modules.

Change-Id: Idc2c3a61fd38b486435366164031b4d51f68eebc
Reviewed-on: https://gerrit.libreoffice.org/51274
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
This commit is contained in:
Samuel Thibault 2018-03-14 13:37:31 +01:00 committed by Thorsten Behrens
parent 9ebe4dec48
commit 77b09e7f92
2 changed files with 5 additions and 1 deletions

View file

@ -165,6 +165,9 @@ gbuild_TARGETS := AllLangHelp \
$(foreach target,$(gbuild_TARGETS),$(target)_% $(foreach module,$(gbuild_modules),$(target)_$(module)/%)) UIConfig_modules/% %.genpatch: bootstrap fetch
$(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $@
$(gbuild_TARGETS):
$(MAKE) $(PARALLELISM_OPTION) $(GMAKE_OPTIONS) -f $(SRCDIR)/Makefile.gbuild $@
#
# Clean
#

View file

@ -88,7 +88,8 @@ endef
#
# gb_Helper_make_userfriendly_targets target class build-target? clean-target?
define gb_Helper_make_userfriendly_targets
.PHONY: $(2)_$(1) $(2)_$(1).clean
.PHONY: $(2) $(2)_$(1) $(2)_$(1).clean
$(2): $(2)_$(1)
$(2)_$(1) : $(if $(3),$(3),$(call gb_$(2)_get_target,$(1)))
$(2)_$(1).clean : $(if $(4),$(4),$(call gb_$(2)_get_clean_target,$(1)))