diff --git a/make/Javadoc.gmk b/make/Javadoc.gmk index 8afd5514064..a31a39cc76f 100644 --- a/make/Javadoc.gmk +++ b/make/Javadoc.gmk @@ -1575,7 +1575,7 @@ $(JACCESSAPI_INDEX_HTML): GET2DOCSDIR=$(JACCESSAPI2COREAPI)/.. $(JACCESSAPI_INDEX_HTML): $(JACCESSAPI_OPTIONS_FILE) $(JACCESSAPI_PACKAGES_FILE) $(COREAPI_INDEX_FILE) $(prep-javadoc) $(call JavadocSummary,$(JACCESSAPI_OPTIONS_FILE),$(JACCESSAPI_PACKAGES_FILE)) - $(JAVADOC_CMD) -d $(@D) \ + $(JAVADOC_CMD_SMALL) -d $(@D) \ @$(JACCESSAPI_OPTIONS_FILE) @$(JACCESSAPI_PACKAGES_FILE) # Create file with javadoc options in it diff --git a/make/MainSupport.gmk b/make/MainSupport.gmk index 57fd68deaa5..0f9b084b404 100644 --- a/make/MainSupport.gmk +++ b/make/MainSupport.gmk @@ -137,7 +137,6 @@ MAKE_MAKEDIR_LIST := make define DeclareRecipeForModuleMakefile ifeq ($$($1_MULTIPLE_MAKEFILES), true) $2-$$($1_TARGET_SUFFIX): $2-$$($1_TARGET_SUFFIX)-$$(notdir $3) - $1 += $2-$$($1_TARGET_SUFFIX)-$$(notdir $3) $2-$$($1_TARGET_SUFFIX)-$$(notdir $3): else @@ -173,6 +172,12 @@ define DeclareRecipesForPhaseAndModule # Only declare recipes if there are makefiles to call ifneq ($$($1_$2_TOPDIRS), ) + # Add the top dir specific target to target list regardless of if recipe + # generation is disabled. + ifeq ($$($1_MULTIPLE_MAKEFILES), true) + $$(foreach d, $$($1_$2_TOPDIRS), \ + $$(eval $1 += $2-$$($1_TARGET_SUFFIX)-$$(notdir $$d))) + endif ifeq ($(NO_RECIPES),) $$(foreach d, $$($1_$2_TOPDIRS), \ $$(eval $$(call DeclareRecipeForModuleMakefile,$1,$2,$$d))) diff --git a/make/common/SetupJavaCompilers.gmk b/make/common/SetupJavaCompilers.gmk index 65fc170404d..fe54cff3d4e 100644 --- a/make/common/SetupJavaCompilers.gmk +++ b/make/common/SetupJavaCompilers.gmk @@ -38,7 +38,10 @@ JAVAC_WARNINGS := -Xlint:all -Werror # and the interim javac, to be run by the boot jdk. $(eval $(call SetupJavaCompiler,BOOT_JAVAC, \ JAVAC := $(JAVAC), \ - FLAGS := $(BOOT_JDK_SOURCETARGET) -XDignore.symbol.file=true -g \ + FLAGS := \ + $(JAVA_TOOL_FLAGS_SMALL) \ + $(BOOT_JDK_SOURCETARGET) \ + -XDignore.symbol.file=true -g \ -Xlint:all$(COMMA)-deprecation$(COMMA)-options -Werror, \ DISABLE_SJAVAC := true, \ ))