926 # Building java.base includes building all of hotspot. |
926 # Building java.base includes building all of hotspot. |
927 java.base: hotspot |
927 java.base: hotspot |
928 |
928 |
929 demos: demos-jdk |
929 demos: demos-jdk |
930 |
930 |
931 # The "exploded image" is a locally runnable JDK in $(BUILD_OUTPUT)/jdk. |
931 # The "exploded image" is a locally runnable JDK in $(OUTPUTDIR)/jdk. |
932 exploded-image-base: $(ALL_MODULES) |
932 exploded-image-base: $(ALL_MODULES) |
933 exploded-image: exploded-image-base release-file |
933 exploded-image: exploded-image-base release-file |
934 # When cross compiling, no need to optimize the exploded image since it won't |
934 # When cross compiling, no need to optimize the exploded image since it won't |
935 # be runnable on the host platform anyway. |
935 # be runnable on the host platform anyway. |
936 ifneq ($(COMPILE_TYPE), cross) |
936 ifneq ($(COMPILE_TYPE), cross) |
955 # alias for backwards compatibility |
955 # alias for backwards compatibility |
956 docs-javadoc: docs-jdk-api |
956 docs-javadoc: docs-jdk-api |
957 |
957 |
958 mac-bundles: mac-bundles-jdk |
958 mac-bundles: mac-bundles-jdk |
959 |
959 |
960 # The $(BUILD_OUTPUT)/images directory contain the resulting deliverables, |
960 # The $(OUTPUTDIR)/images directory contain the resulting deliverables, |
961 # and in line with this, our targets for creating these are named *-image[s]. |
961 # and in line with this, our targets for creating these are named *-image[s]. |
962 |
962 |
963 # This target builds the product images, e.g. the JRE and JDK image |
963 # This target builds the product images, e.g. the JRE and JDK image |
964 # (and possibly other, more specific versions) |
964 # (and possibly other, more specific versions) |
965 product-images: jdk-image jre-image symbols-image exploded-image |
965 product-images: jdk-image jre-image symbols-image exploded-image |
1046 CLEAN_MODULE_PHASE_TARGETS := $(addprefix clean-, $(foreach m, $(ALL_MODULES), \ |
1046 CLEAN_MODULE_PHASE_TARGETS := $(addprefix clean-, $(foreach m, $(ALL_MODULES), \ |
1047 $(addprefix $m-, $(CLEAN_PHASES)))) |
1047 $(addprefix $m-, $(CLEAN_PHASES)))) |
1048 |
1048 |
1049 # Remove everything, except the output from configure. |
1049 # Remove everything, except the output from configure. |
1050 clean: $(CLEAN_DIR_TARGETS) |
1050 clean: $(CLEAN_DIR_TARGETS) |
1051 ($(CD) $(OUTPUT_ROOT) && $(RM) -r build*.log*) |
1051 ($(CD) $(OUTPUTDIR) && $(RM) -r build*.log*) |
1052 $(ECHO) Cleaned all build artifacts. |
1052 $(ECHO) Cleaned all build artifacts. |
1053 |
1053 |
1054 clean-docs: |
1054 clean-docs: |
1055 $(call CleanDocs) |
1055 $(call CleanDocs) |
1056 |
1056 |
1079 clean-support: clean-jdk |
1079 clean-support: clean-jdk |
1080 |
1080 |
1081 # Remove everything, including configure configuration. If the output |
1081 # Remove everything, including configure configuration. If the output |
1082 # directory was created by configure and now becomes empty, remove it as well. |
1082 # directory was created by configure and now becomes empty, remove it as well. |
1083 dist-clean: clean |
1083 dist-clean: clean |
1084 ($(CD) $(OUTPUT_ROOT) && \ |
1084 ($(CD) $(OUTPUTDIR) && \ |
1085 $(RM) -r *spec.gmk $(CONFIGURESUPPORT_OUTPUTDIR) Makefile compare.sh ide) |
1085 $(RM) -r *spec.gmk $(CONFIGURESUPPORT_OUTPUTDIR) Makefile compare.sh ide) |
1086 $(if $(filter $(CONF_NAME),$(notdir $(OUTPUT_ROOT))), \ |
1086 $(if $(filter $(CONF_NAME),$(notdir $(OUTPUTDIR))), \ |
1087 if test "x`$(LS) $(OUTPUT_ROOT)`" != x; then \ |
1087 if test "x`$(LS) $(OUTPUTDIR)`" != x; then \ |
1088 $(ECHO) "Warning: Not removing non-empty configuration directory for '$(CONF_NAME)'" ; \ |
1088 $(ECHO) "Warning: Not removing non-empty configuration directory for '$(CONF_NAME)'" ; \ |
1089 else \ |
1089 else \ |
1090 ($(CD) $(TOPDIR) && $(ECHO) "Removing configuration directory for '$(CONF_NAME)'" \ |
1090 ($(CD) $(TOPDIR) && $(ECHO) "Removing configuration directory for '$(CONF_NAME)'" \ |
1091 && $(RM) -r $(OUTPUT_ROOT)) \ |
1091 && $(RM) -r $(OUTPUTDIR)) \ |
1092 fi \ |
1092 fi \ |
1093 ) |
1093 ) |
1094 $(ECHO) Cleaned everything, you will have to re-run configure. |
1094 $(ECHO) Cleaned everything, you will have to re-run configure. |
1095 |
1095 |
1096 ALL_TARGETS += clean clean-docs dist-clean $(CLEAN_DIR_TARGETS) $(CLEAN_SUPPORT_DIR_TARGETS) \ |
1096 ALL_TARGETS += clean clean-docs dist-clean $(CLEAN_DIR_TARGETS) $(CLEAN_SUPPORT_DIR_TARGETS) \ |