common/makefiles/Main.gmk

Print this page




 175         @($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk sign-jars)
 176         @$(call TargetExit)
 177 
 178 bootcycle-images: images bootcycle-images-only
 179 bootcycle-images-only: start-make
 180         @$(ECHO) Boot cycle build step 2: Building a new JDK image using previously built image
 181         @($(CD) $(SRC_ROOT)/common/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) SPEC=$(dir $(SPEC))bootcycle-spec.gmk images)
 182 
 183 test: images test-only
 184 test-only: start-make
 185         @$(call TargetEnter)
 186         @($(CD) $(SRC_ROOT)/test && $(BUILD_LOG_WRAPPER) $(MAKE) -j1 -k JT_HOME=$(JT_HOME) MAKEFLAGS= PRODUCT_HOME=$(JDK_IMAGE_DIR) JPRT_JAVA_HOME=$(JDK_IMAGE_DIR) ALT_OUTPUTDIR=$(OUTPUT_ROOT) $(TEST)) || true
 187         @$(call TargetExit)
 188 
 189 # Stores the tips for each repository. This file is be used when constructing the jdk image and can be
 190 # used to track the exact sources used to build that image.
 191 source-tips: $(OUTPUT_ROOT)/source_tips
 192 $(OUTPUT_ROOT)/source_tips: FRC
 193         @$(MKDIR) -p $(@D)
 194         @$(RM) $@
 195         @$(if $(HG),$(call GetSourceTips),$(ECHO) "hg not installed" > $@)
 196 
 197 
 198 # Remove everything, except the output from configure.
 199 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
 200         @($(CD) $(OUTPUT_ROOT) && $(RM) -r tmp source_tips build.log* build-trace*.log*)
 201         @$(ECHO) Cleaned all build artifacts.
 202 
 203 # Remove everything, including configure configuration.
 204 # If the output directory was created by configure and now becomes empty, remove it as well.
 205 # FIXME: tmp should not be here, fix ResetTimers instead. And remove spec.sh!
 206 dist-clean: clean
 207         @($(CD) $(OUTPUT_ROOT) && $(RM) -r *spec.gmk config.* configure-arguments Makefile compare.sh spec.sh tmp)
 208         @$(if $(filter $(CONF_NAME),$(notdir $(OUTPUT_ROOT))), \
 209     if test "x`$(LS) $(OUTPUT_ROOT)`" != x; then \
 210         $(ECHO) "Warning: Not removing non-empty configuration directory for '$(CONF_NAME)'" ;\
 211     else \
 212         ($(CD) $(SRC_ROOT) && $(ECHO) "Removing configuration directory for '$(CONF_NAME)'" && $(RM) -r $(OUTPUT_ROOT)) \
 213     fi \
 214   )
 215         @$(ECHO) Cleaned everything, you will have to re-run configure.




 175         @($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk sign-jars)
 176         @$(call TargetExit)
 177 
 178 bootcycle-images: images bootcycle-images-only
 179 bootcycle-images-only: start-make
 180         @$(ECHO) Boot cycle build step 2: Building a new JDK image using previously built image
 181         @($(CD) $(SRC_ROOT)/common/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) SPEC=$(dir $(SPEC))bootcycle-spec.gmk images)
 182 
 183 test: images test-only
 184 test-only: start-make
 185         @$(call TargetEnter)
 186         @($(CD) $(SRC_ROOT)/test && $(BUILD_LOG_WRAPPER) $(MAKE) -j1 -k JT_HOME=$(JT_HOME) MAKEFLAGS= PRODUCT_HOME=$(JDK_IMAGE_DIR) JPRT_JAVA_HOME=$(JDK_IMAGE_DIR) ALT_OUTPUTDIR=$(OUTPUT_ROOT) $(TEST)) || true
 187         @$(call TargetExit)
 188 
 189 # Stores the tips for each repository. This file is be used when constructing the jdk image and can be
 190 # used to track the exact sources used to build that image.
 191 source-tips: $(OUTPUT_ROOT)/source_tips
 192 $(OUTPUT_ROOT)/source_tips: FRC
 193         @$(MKDIR) -p $(@D)
 194         @$(RM) $@
 195         @$(call GetSourceTips)
 196 
 197 
 198 # Remove everything, except the output from configure.
 199 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
 200         @($(CD) $(OUTPUT_ROOT) && $(RM) -r tmp source_tips build.log* build-trace*.log*)
 201         @$(ECHO) Cleaned all build artifacts.
 202 
 203 # Remove everything, including configure configuration.
 204 # If the output directory was created by configure and now becomes empty, remove it as well.
 205 # FIXME: tmp should not be here, fix ResetTimers instead. And remove spec.sh!
 206 dist-clean: clean
 207         @($(CD) $(OUTPUT_ROOT) && $(RM) -r *spec.gmk config.* configure-arguments Makefile compare.sh spec.sh tmp)
 208         @$(if $(filter $(CONF_NAME),$(notdir $(OUTPUT_ROOT))), \
 209     if test "x`$(LS) $(OUTPUT_ROOT)`" != x; then \
 210         $(ECHO) "Warning: Not removing non-empty configuration directory for '$(CONF_NAME)'" ;\
 211     else \
 212         ($(CD) $(SRC_ROOT) && $(ECHO) "Removing configuration directory for '$(CONF_NAME)'" && $(RM) -r $(OUTPUT_ROOT)) \
 213     fi \
 214   )
 215         @$(ECHO) Cleaned everything, you will have to re-run configure.