155 @($(CD) $(JDK_TOPDIR)/make && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk install)
156 @$(call TargetExit)
157
158 docs: jdk docs-only
159 docs-only: start-make
160 @$(call TargetEnter)
161 @($(CD) $(SRC_ROOT)/make && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f Javadoc.gmk docs)
162 @$(call TargetExit)
163
164 sign-jars: jdk sign-jars-only
165 sign-jars-only: start-make
166 @$(call TargetEnter)
167 @($(CD) $(JDK_TOPDIR)/make && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk sign-jars)
168 @$(call TargetExit)
169
170 bootcycle-images: images bootcycle-images-only
171 bootcycle-images-only: start-make
172 @$(ECHO) Boot cycle build step 2: Building a new JDK image using previously built image
173 @($(CD) $(SRC_ROOT) && $(BUILD_LOG_WRAPPER) $(MAKE) SPEC=$(dir $(SPEC))bootcycle-spec.gmk images)
174
175 test: images test-only
176 test-only: start-make
177 @$(call TargetEnter)
178 @($(CD) $(SRC_ROOT)/test && $(BUILD_LOG_WRAPPER) $(MAKE) -j1 -k MAKEFLAGS= JT_HOME=$(JT_HOME) PRODUCT_HOME=$(JDK_IMAGE_DIR) ALT_OUTPUTDIR=$(OUTPUT_ROOT) CONCURRENCY=$(JOBS) $(TEST)) || true
179 @$(call TargetExit)
180
181 # Stores the tips for each repository. This file is be used when constructing the jdk image and can be
182 # used to track the exact sources used to build that image.
183 source-tips: $(OUTPUT_ROOT)/source_tips
184 $(OUTPUT_ROOT)/source_tips: FRC
185 @$(MKDIR) -p $(@D)
186 @$(RM) $@
187 @$(call GetSourceTips)
188
189
190 # Remove everything, except the output from configure.
191 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 clean-test
192 @($(CD) $(OUTPUT_ROOT) && $(RM) -r tmp source_tips build.log* build-trace*.log*)
193 @$(ECHO) Cleaned all build artifacts.
194
195 # Remove everything, including configure configuration.
196 # If the output directory was created by configure and now becomes empty, remove it as well.
197 # FIXME: tmp should not be here, fix ResetTimers instead. And remove spec.sh!
198 dist-clean: clean
199 @($(CD) $(OUTPUT_ROOT) && $(RM) -r *spec.gmk config.* configure-arguments Makefile compare.sh spec.sh tmp javacservers)
|
155 @($(CD) $(JDK_TOPDIR)/make && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk install)
156 @$(call TargetExit)
157
158 docs: jdk docs-only
159 docs-only: start-make
160 @$(call TargetEnter)
161 @($(CD) $(SRC_ROOT)/make && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f Javadoc.gmk docs)
162 @$(call TargetExit)
163
164 sign-jars: jdk sign-jars-only
165 sign-jars-only: start-make
166 @$(call TargetEnter)
167 @($(CD) $(JDK_TOPDIR)/make && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk sign-jars)
168 @$(call TargetExit)
169
170 bootcycle-images: images bootcycle-images-only
171 bootcycle-images-only: start-make
172 @$(ECHO) Boot cycle build step 2: Building a new JDK image using previously built image
173 @($(CD) $(SRC_ROOT) && $(BUILD_LOG_WRAPPER) $(MAKE) SPEC=$(dir $(SPEC))bootcycle-spec.gmk images)
174
175 # If the tests produced a $(TEST)_exitcode.txt file, use the number in that
176 # file for the exit code of the "make test" invocation.
177 test: images test-only
178 test-only: start-make
179 @$(call TargetEnter)
180 @($(CD) $(SRC_ROOT)/test && $(BUILD_LOG_WRAPPER) $(MAKE) -j1 -k MAKEFLAGS= JT_HOME=$(JT_HOME) PRODUCT_HOME=$(JDK_IMAGE_DIR) ALT_OUTPUTDIR=$(OUTPUT_ROOT) CONCURRENCY=$(JOBS) $(TEST)) || true
181 @$(call TargetExit)
182 @(if [ -r $(OUTPUT_ROOT)/testoutput/$(TEST)_exitcode.txt ]; then \
183 EXIT=$$($(CAT) $(OUTPUT_ROOT)/testoutput/$(TEST)_exitcode.txt); \
184 exit $${EXIT}; \
185 fi)
186
187 # Stores the tips for each repository. This file is be used when constructing the jdk image and can be
188 # used to track the exact sources used to build that image.
189 source-tips: $(OUTPUT_ROOT)/source_tips
190 $(OUTPUT_ROOT)/source_tips: FRC
191 @$(MKDIR) -p $(@D)
192 @$(RM) $@
193 @$(call GetSourceTips)
194
195
196 # Remove everything, except the output from configure.
197 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 clean-test
198 @($(CD) $(OUTPUT_ROOT) && $(RM) -r tmp source_tips build.log* build-trace*.log*)
199 @$(ECHO) Cleaned all build artifacts.
200
201 # Remove everything, including configure configuration.
202 # If the output directory was created by configure and now becomes empty, remove it as well.
203 # FIXME: tmp should not be here, fix ResetTimers instead. And remove spec.sh!
204 dist-clean: clean
205 @($(CD) $(OUTPUT_ROOT) && $(RM) -r *spec.gmk config.* configure-arguments Makefile compare.sh spec.sh tmp javacservers)
|