96 @$(PRINTF) "Cleaning include $(if $1,for $(strip $1) )..." 97 @$(PRINTF) "\n" $(LOG_DEBUG) 98 $(RM) -r $(SUPPORT_OUTPUTDIR)/modules_include/$(strip $1) 99 @$(PRINTF) " done\n" 100 endef 101 102 define Clean-docs 103 @$(PRINTF) "Cleaning docs ..." 104 @$(PRINTF) "\n" $(LOG_DEBUG) 105 $(RM) -r $(SUPPORT_OUTPUTDIR)/docs 106 $(RM) -r $(IMAGES_OUTPUTDIR)/docs 107 $(RM) $(OUTPUT_ROOT)/bundles/jdk-*-docs.zip 108 @$(PRINTF) " done\n" 109 endef 110 111 define CleanModule 112 $(call Clean-gensrc, $1) 113 $(call Clean-java, $1) 114 $(call Clean-native, $1) 115 $(call Clean-include, $1) 116 endef 117 118 119 ################################################################################ 120 121 MAKE_TOPDIR_LIST := $(JDK_TOPDIR) $(CORBA_TOPDIR) $(LANGTOOLS_TOPDIR) \ 122 $(HOTSPOT_TOPDIR) 123 MAKE_MAKEDIR_LIST := make 124 125 # Helper macro for DeclareRecipesForPhase 126 # Declare a recipe for calling the module and phase specific makefile. 127 # If there are multiple makefiles to call, create a rule for each topdir 128 # that contains a makefile with the target $module-$suffix-$repodir, 129 # (i.e: java.base-gensrc-jdk) 130 # Normally there is only one makefile, and the target will just be 131 # $module-$suffix 132 # Param 1: Name of list to add targets to 133 # Param 2: Module name 134 # Param 3: Topdir 135 define DeclareRecipeForModuleMakefile 136 ifeq ($$($1_MULTIPLE_MAKEFILES), true) 137 $2-$$($1_TARGET_SUFFIX): $2-$$($1_TARGET_SUFFIX)-$$(notdir $3) | 96 @$(PRINTF) "Cleaning include $(if $1,for $(strip $1) )..." 97 @$(PRINTF) "\n" $(LOG_DEBUG) 98 $(RM) -r $(SUPPORT_OUTPUTDIR)/modules_include/$(strip $1) 99 @$(PRINTF) " done\n" 100 endef 101 102 define Clean-docs 103 @$(PRINTF) "Cleaning docs ..." 104 @$(PRINTF) "\n" $(LOG_DEBUG) 105 $(RM) -r $(SUPPORT_OUTPUTDIR)/docs 106 $(RM) -r $(IMAGES_OUTPUTDIR)/docs 107 $(RM) $(OUTPUT_ROOT)/bundles/jdk-*-docs.zip 108 @$(PRINTF) " done\n" 109 endef 110 111 define CleanModule 112 $(call Clean-gensrc, $1) 113 $(call Clean-java, $1) 114 $(call Clean-native, $1) 115 $(call Clean-include, $1) 116 $(if $(subst jdk.accessibility,,$(strip $1)),,$(call CleanJavaAccessBridge)) 117 endef 118 119 define CleanJavaAccessBridge 120 @$(PRINTF) "Cleaning javaaccessbridge for jdk.accessibility ..." 121 @$(PRINTF) "\n" $(LOG_DEBUG) 122 $(RM) -r $(SUPPORT_OUTPUTDIR)/modules_javaaccessbridge/jdk.accessibility 123 @$(PRINTF) " done\n" 124 endef 125 126 ################################################################################ 127 128 MAKE_TOPDIR_LIST := $(JDK_TOPDIR) $(CORBA_TOPDIR) $(LANGTOOLS_TOPDIR) \ 129 $(HOTSPOT_TOPDIR) 130 MAKE_MAKEDIR_LIST := make 131 132 # Helper macro for DeclareRecipesForPhase 133 # Declare a recipe for calling the module and phase specific makefile. 134 # If there are multiple makefiles to call, create a rule for each topdir 135 # that contains a makefile with the target $module-$suffix-$repodir, 136 # (i.e: java.base-gensrc-jdk) 137 # Normally there is only one makefile, and the target will just be 138 # $module-$suffix 139 # Param 1: Name of list to add targets to 140 # Param 2: Module name 141 # Param 3: Topdir 142 define DeclareRecipeForModuleMakefile 143 ifeq ($$($1_MULTIPLE_MAKEFILES), true) 144 $2-$$($1_TARGET_SUFFIX): $2-$$($1_TARGET_SUFFIX)-$$(notdir $3) |