Makefile
changeset 21905 7e7001d203cb
parent 21759 e24e22311718
child 22031 ae288cbb4c28
equal deleted inserted replaced
21904:5a52f685faf0 21905:7e7001d203cb
    64   else
    64   else
    65     # We are building multiple configurations.
    65     # We are building multiple configurations.
    66     # First, find out the valid targets
    66     # First, find out the valid targets
    67     # Run the makefile with an arbitrary SPEC using -p -q (quiet dry-run and dump rules) to find
    67     # Run the makefile with an arbitrary SPEC using -p -q (quiet dry-run and dump rules) to find
    68     # available PHONY targets. Use this list as valid targets to pass on to the repeated calls.
    68     # available PHONY targets. Use this list as valid targets to pass on to the repeated calls.
    69     all_phony_targets=$(filter-out $(global_targets) bundles-only, $(strip $(shell \
    69     all_phony_targets=$(filter-out $(global_targets) bundles bundles-only final-images-only, $(strip $(shell \
    70         $(MAKE) -p -q -f make/Main.gmk FRC SPEC=$(firstword $(SPEC)) | \
    70         cd $(root_dir) && $(MAKE) -p -q FRC SPEC=$(firstword $(SPEC)) | \
    71         grep ^.PHONY: | head -n 1 | cut -d " " -f 2-)))
    71         grep ^.PHONY: | head -n 1 | cut -d " " -f 2-)))
    72 
    72 
    73     $(all_phony_targets):
    73     $(all_phony_targets):
    74 	@$(foreach spec,$(SPEC),($(MAKE) -f NewMakefile.gmk SPEC=$(spec) \
    74 	@$(foreach spec,$(SPEC),(cd $(root_dir) && $(MAKE) SPEC=$(spec) \
    75 	    $(VERBOSE) VERBOSE=$(VERBOSE) LOG_LEVEL=$(LOG_LEVEL) $@) &&) true
    75 	    $(VERBOSE) VERBOSE=$(VERBOSE) LOG_LEVEL=$(LOG_LEVEL) $@) &&) true
    76 
    76 
    77     .PHONY: $(all_phony_targets)
    77     .PHONY: $(all_phony_targets)
    78 
    78 
    79   endif
    79   endif