common/makefiles/Main.gmk

changeset 653
980ccff2d4f5
parent 635
907a926d3c96
parent 652
b35d986ff276
child 668
52d1b385a4ed
child 677
fc1e08c2bb27
child 888
fe5a388bf8fe
equal deleted inserted replaced
636:cd7f2c7e2a0e 653:980ccff2d4f5
118 jdk-only: start-make 118 jdk-only: start-make
119 @$(call TargetEnter) 119 @$(call TargetEnter)
120 @($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk $(JDK_TARGET)) 120 @($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk $(JDK_TARGET))
121 @$(call TargetExit) 121 @$(call TargetExit)
122 122
123 nashorn: jdk nashorn-only
124 nashorn-only: start-make
125 @$(call TargetEnter)
126 @($(CD) $(NASHORN_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildNashorn.gmk)
127 @$(call TargetExit)
128
123 demos: jdk demos-only 129 demos: jdk demos-only
124 demos-only: start-make 130 demos-only: start-make
125 @$(call TargetEnter) 131 @$(call TargetEnter)
126 @($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk demos) 132 @($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk demos)
127 @$(call TargetExit) 133 @$(call TargetExit)
128 134
129 # Note: This double-colon rule is intentional, to support 135 # Note: This double-colon rule is intentional, to support
130 # custom make file integration. 136 # custom make file integration.
131 images:: source-tips demos images-only 137 images:: source-tips demos nashorn images-only
132 images-only: start-make 138 images-only: start-make
133 @$(call TargetEnter) 139 @$(call TargetEnter)
134 @($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk images) 140 @($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk images)
135 @$(call TargetExit) 141 @$(call TargetExit)
136 142
173 @$(ECHO) Boot cycle build step 1: Building the JDK image normally 179 @$(ECHO) Boot cycle build step 1: Building the JDK image normally
174 @($(CD) $(SRC_ROOT)/common/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) SPEC=$(SPEC) images) 180 @($(CD) $(SRC_ROOT)/common/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) SPEC=$(SPEC) images)
175 @$(ECHO) Boot cycle build step 2: Building a new JDK image using previously built image 181 @$(ECHO) Boot cycle build step 2: Building a new JDK image using previously built image
176 @($(CD) $(SRC_ROOT)/common/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) SPEC=$(dir $(SPEC))bootcycle-spec.gmk images) 182 @($(CD) $(SRC_ROOT)/common/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) SPEC=$(dir $(SPEC))bootcycle-spec.gmk images)
177 183
178 test: start-make 184 test: images test-only
179 @$(call TargetEnter) 185 test-only: start-make
180 @($(CD) $(SRC_ROOT)/test && $(BUILD_LOG_WRAPPER) $(MAKE) -j1 -k MAKEFLAGS= PRODUCT_HOME=$(OUTPUT_ROOT)/jdk JPRT_JAVA_HOME=$(OUTPUT_ROOT)/jdk ALT_OUTPUTDIR=$(OUTPUT_ROOT) $(TEST)) || true 186 @$(call TargetEnter)
187 @($(CD) $(SRC_ROOT)/test && $(BUILD_LOG_WRAPPER) $(MAKE) -j1 -k MAKEFLAGS= PRODUCT_HOME=$(JDK_IMAGE_DIR) JPRT_JAVA_HOME=$(JDK_IMAGE_DIR) ALT_OUTPUTDIR=$(OUTPUT_ROOT) $(TEST)) || true
181 @$(call TargetExit) 188 @$(call TargetExit)
182 189
183 # Stores the tips for each repository. This file is be used when constructing the jdk image and can be 190 # Stores the tips for each repository. This file is be used when constructing the jdk image and can be
184 # used to track the exact sources used to build that image. 191 # used to track the exact sources used to build that image.
185 source-tips: $(OUTPUT_ROOT)/source_tips 192 source-tips: $(OUTPUT_ROOT)/source_tips
188 @$(RM) $@ 195 @$(RM) $@
189 @$(if $(HG),$(call GetSourceTips),$(ECHO) "hg not installed" > $@) 196 @$(if $(HG),$(call GetSourceTips),$(ECHO) "hg not installed" > $@)
190 197
191 198
192 # Remove everything, except the output from configure. 199 # Remove everything, except the output from configure.
193 clean: clean-langtools clean-corba clean-jaxp clean-jaxws clean-hotspot clean-jdk clean-images clean-overlay-images clean-bootcycle-build clean-docs 200 clean: clean-langtools clean-corba clean-jaxp clean-jaxws clean-hotspot clean-jdk clean-nashorn clean-images clean-overlay-images clean-bootcycle-build clean-docs
194 @($(CD) $(OUTPUT_ROOT) && $(RM) -r tmp source_tips build.log* build-trace*.log*) 201 @($(CD) $(OUTPUT_ROOT) && $(RM) -r tmp source_tips build.log* build-trace*.log*)
195 @$(ECHO) Cleaned all build artifacts. 202 @$(ECHO) Cleaned all build artifacts.
196 203
197 # Remove everything, including configure configuration. 204 # Remove everything, including configure configuration.
198 # If the output directory was created by configure and now becomes empty, remove it as well. 205 # If the output directory was created by configure and now becomes empty, remove it as well.
218 $(call CleanComponent,jaxws) 225 $(call CleanComponent,jaxws)
219 clean-hotspot: 226 clean-hotspot:
220 $(call CleanComponent,hotspot) 227 $(call CleanComponent,hotspot)
221 clean-jdk: 228 clean-jdk:
222 $(call CleanComponent,jdk) 229 $(call CleanComponent,jdk)
230 clean-nashorn:
231 $(call CleanComponent,nashorn)
223 clean-images: 232 clean-images:
224 $(call CleanComponent,images) 233 $(call CleanComponent,images)
225 clean-overlay-images: 234 clean-overlay-images:
226 $(call CleanComponent,overlay-images) 235 $(call CleanComponent,overlay-images)
227 clean-bootcycle-build: 236 clean-bootcycle-build:
228 $(call CleanComponent,bootcycle-build) 237 $(call CleanComponent,bootcycle-build)
229 clean-docs: 238 clean-docs:
230 $(call CleanComponent,docs) 239 $(call CleanComponent,docs)
231 $(call CleanComponent,docstemp) 240 $(call CleanComponent,docstemp)
232 241
233 .PHONY: langtools corba jaxp jaxws hotspot jdk images overlay-images install 242 .PHONY: langtools corba jaxp jaxws hotspot jdk nashorn images overlay-images install
234 .PHONY: langtools-only corba-only jaxp-only jaxws-only hotspot-only jdk-only images-only overlay-images-only install-only 243 .PHONY: langtools-only corba-only jaxp-only jaxws-only hotspot-only jdk-only nashorn-only images-only overlay-images-only install-only
235 .PHONY: all test clean dist-clean bootcycle-images start-make 244 .PHONY: all test clean dist-clean bootcycle-images start-make
236 .PHONY: clean-langtools clean-corba clean-jaxp clean-jaxws clean-hotspot clean-jdk clean-images clean-overlay-images clean-bootcycle-build 245 .PHONY: clean-langtools clean-corba clean-jaxp clean-jaxws clean-hotspot clean-jdk clean-nashorn clean-images clean-overlay-images clean-bootcycle-build
237 .PHONY: profiles profiles-only profiles-oscheck 246 .PHONY: profiles profiles-only profiles-oscheck
238 247
239 FRC: # Force target 248 FRC: # Force target

mercurial