56 $(eval $(call ParseLogLevel))
57 $(eval $(call ParseConfAndSpec))
58
59 # Now determine if we have zero, one or several configurations to build.
60 ifeq ($(SPEC),)
61 # Since we got past ParseConfAndSpec, we must be building a global target. Do nothing.
62 else
63 ifeq ($(words $(SPEC)),1)
64 # We are building a single configuration. This is the normal case. Execute the Main.gmk file.
65 include $(root_dir)/common/makefiles/Main.gmk
66 else
67 # We are building multiple configurations.
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
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), $(strip $(shell \
72 $(MAKE) -p -q -f common/makefiles SPEC=$(firstword $(SPEC)) | \
73 grep ^.PHONY: | head -n 1 | cut -d " " -f 2-)))
74
75 $(all_phony_targets):
76 @$(foreach spec,$(SPEC),($(MAKE) -f NewMakefile.gmk SPEC=$(spec) $(VERBOSE) VERBOSE=$(VERBOSE) $@) &&) true
77
78 endif
79 endif
80
81 # Include this after a potential spec file has been included so that the bundles target
82 # has access to the spec variables.
83 include $(root_dir)/common/makefiles/Jprt.gmk
84
85 # Here are "global" targets, i.e. targets that can be executed without specifying a single configuration.
86 # If you addd more global targets, please update the variable global_targets in MakeHelpers.
87
88 help:
89 $(info )
90 $(info OpenJDK Makefile help)
91 $(info =====================)
92 $(info )
93 $(info Common make targets)
94 $(info . make [default] # Compile all product in langtools, hotspot, jaxp, jaxws,)
95 $(info . # corba and jdk)
96 $(info . make all # Compile everything, all repos and images)
|
56 $(eval $(call ParseLogLevel))
57 $(eval $(call ParseConfAndSpec))
58
59 # Now determine if we have zero, one or several configurations to build.
60 ifeq ($(SPEC),)
61 # Since we got past ParseConfAndSpec, we must be building a global target. Do nothing.
62 else
63 ifeq ($(words $(SPEC)),1)
64 # We are building a single configuration. This is the normal case. Execute the Main.gmk file.
65 include $(root_dir)/common/makefiles/Main.gmk
66 else
67 # We are building multiple configurations.
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
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), $(strip $(shell \
72 $(MAKE) -p -q -f common/makefiles SPEC=$(firstword $(SPEC)) | \
73 grep ^.PHONY: | head -n 1 | cut -d " " -f 2-)))
74
75 $(all_phony_targets):
76 @$(foreach spec,$(SPEC),($(MAKE) -f NewMakefile.gmk SPEC=$(spec) $(VERBOSE) VERBOSE=$(VERBOSE) LOG_LEVEL=$(LOG_LEVEL) $@) &&) true
77
78 endif
79 endif
80
81 # Include this after a potential spec file has been included so that the bundles target
82 # has access to the spec variables.
83 include $(root_dir)/common/makefiles/Jprt.gmk
84
85 # Here are "global" targets, i.e. targets that can be executed without specifying a single configuration.
86 # If you addd more global targets, please update the variable global_targets in MakeHelpers.
87
88 help:
89 $(info )
90 $(info OpenJDK Makefile help)
91 $(info =====================)
92 $(info )
93 $(info Common make targets)
94 $(info . make [default] # Compile all product in langtools, hotspot, jaxp, jaxws,)
95 $(info . # corba and jdk)
96 $(info . make all # Compile everything, all repos and images)
|