common/makefiles/Main.gmk

Print this page
rev 902 : 8020779: Improve detection and handling of jtreg/jtdiff executable path
8026988: Makefile is confused if JT_HOME is a different location than jtreg executable
Reviewed-by: duke


 162 docs: jdk docs-only
 163 docs-only: start-make
 164         @$(call TargetEnter)
 165         @($(CD) $(SRC_ROOT)/common/makefiles/javadoc && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f Javadoc.gmk docs)
 166         @$(call TargetExit)
 167 
 168 sign-jars: jdk sign-jars-only
 169 sign-jars-only: start-make
 170         @$(call TargetEnter)
 171         @($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk sign-jars)
 172         @$(call TargetExit)
 173 
 174 bootcycle-images: images bootcycle-images-only
 175 bootcycle-images-only: start-make
 176         @$(ECHO) Boot cycle build step 2: Building a new JDK image using previously built image
 177         @($(CD) $(SRC_ROOT)/common/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) SPEC=$(dir $(SPEC))bootcycle-spec.gmk images)
 178 
 179 test: images test-only
 180 test-only: start-make
 181         @$(call TargetEnter)
 182         @($(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
 183         @$(call TargetExit)
 184 
 185 # Stores the tips for each repository. This file is be used when constructing the jdk image and can be
 186 # used to track the exact sources used to build that image.
 187 source-tips: $(OUTPUT_ROOT)/source_tips
 188 $(OUTPUT_ROOT)/source_tips: FRC
 189         @$(MKDIR) -p $(@D)
 190         @$(RM) $@
 191         @$(call GetSourceTips)
 192 
 193 
 194 # Remove everything, except the output from configure.
 195 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
 196         @($(CD) $(OUTPUT_ROOT) && $(RM) -r tmp source_tips build.log* build-trace*.log*)
 197         @$(ECHO) Cleaned all build artifacts.
 198 
 199 # Remove everything, including configure configuration.
 200 # If the output directory was created by configure and now becomes empty, remove it as well.
 201 # FIXME: tmp should not be here, fix ResetTimers instead. And remove spec.sh!
 202 dist-clean: clean




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