67 # We are building multiple configurations. |
67 # We are building multiple configurations. |
68 # First, find out the valid targets |
68 # First, find out the valid targets |
69 # Run the makefile with an arbitraty SPEC using -p -q (quiet dry-run and dump rules) to find |
69 # Run the makefile with an arbitraty SPEC using -p -q (quiet dry-run and dump rules) to find |
70 # available PHONY targets. Use this list as valid targets to pass on to the repeated calls. |
70 # available PHONY targets. Use this list as valid targets to pass on to the repeated calls. |
71 all_phony_targets=$(filter-out $(global_targets) bundles-only, $(strip $(shell \ |
71 all_phony_targets=$(filter-out $(global_targets) bundles-only, $(strip $(shell \ |
72 $(MAKE) -p -q -f common/makefiles/Main.gmk SPEC=$(firstword $(SPEC)) | \ |
72 $(MAKE) -p -q -f common/makefiles/Main.gmk FRC SPEC=$(firstword $(SPEC)) | \ |
73 grep ^.PHONY: | head -n 1 | cut -d " " -f 2-))) |
73 grep ^.PHONY: | head -n 1 | cut -d " " -f 2-))) |
74 |
74 |
75 $(all_phony_targets): |
75 $(all_phony_targets): |
76 $(foreach spec,$(SPEC),($(MAKE) -f NewMakefile.gmk SPEC=$(spec) \ |
76 @$(foreach spec,$(SPEC),($(MAKE) -f NewMakefile.gmk SPEC=$(spec) \ |
77 $(VERBOSE) VERBOSE=$(VERBOSE) LOG_LEVEL=$(LOG_LEVEL) $@) &&) true |
77 $(VERBOSE) VERBOSE=$(VERBOSE) LOG_LEVEL=$(LOG_LEVEL) $@) &&) true |
78 |
78 |
79 .PHONY: $(all_phony_targets) |
79 .PHONY: $(all_phony_targets) |
80 |
80 |
81 endif |
81 endif |