equal
deleted
inserted
replaced
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 bundles-only final-images-only, $(strip $(shell \ |
69 all_phony_targets=$(filter-out $(global_targets), $(strip $(shell \ |
70 cd $(root_dir) && $(MAKE) -p -q 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),(cd $(root_dir) && $(MAKE) SPEC=$(spec) \ |
74 @$(foreach spec,$(SPEC),(cd $(root_dir) && $(MAKE) SPEC=$(spec) \ |
76 |
76 |
77 .PHONY: $(all_phony_targets) |
77 .PHONY: $(all_phony_targets) |
78 |
78 |
79 endif |
79 endif |
80 endif |
80 endif |
81 |
|
82 # Include this after a potential spec file has been included so that the bundles target |
|
83 # has access to the spec variables. |
|
84 include $(root_dir)/make/Jprt.gmk |
|
85 |
81 |
86 # Here are "global" targets, i.e. targets that can be executed without specifying a single configuration. |
82 # Here are "global" targets, i.e. targets that can be executed without specifying a single configuration. |
87 # If you addd more global targets, please update the variable global_targets in MakeHelpers. |
83 # If you addd more global targets, please update the variable global_targets in MakeHelpers. |
88 |
84 |
89 help: |
85 help: |