main.mk
766 # phony target that include any targets in $(ALL_MODULES) 767 .PHONY: all_modules 768 ifndef BUILD_MODULES_IN_PATHS 769 all_modules: $(ALL_MODULES) 770 else 771 # BUILD_MODULES_IN_PATHS is a list of paths relative to the top of the tree 772 module_path_patterns := $(foreach p, $(BUILD_MODULES_IN_PATHS),\ 773 $(if $(filter %/,$(p)),$(p)%,$(p)/%)) 774 my_all_modules := $(sort $(foreach m, $(ALL_MODULES),$(if $(filter\ 775 $(module_path_patterns), $(addsuffix /,$(ALL_MODULES.$(m).PATH))),$(m)))) 776 all_modules: $(my_all_modules) 777 endif 778