changeset 59347:0c1aa8020424

8245287: Start using ModuleWrapper for gensrc as well Reviewed-by: erikj
author ihse
date Tue, 19 May 2020 15:59:51 +0200
parents 7631df99930a
children 8f6fe75b982b
files make/Main.gmk make/MainSupport.gmk make/common/modules/GensrcCommonJdk.gmk make/common/modules/GensrcCommonLangtools.gmk make/modules/java.base/Gensrc.gmk make/modules/java.base/gensrc/GensrcBuffer.gmk make/modules/java.base/gensrc/GensrcCharacterData.gmk make/modules/java.base/gensrc/GensrcCharsetCoder.gmk make/modules/java.base/gensrc/GensrcCharsetMapping.gmk make/modules/java.base/gensrc/GensrcEmojiData.gmk make/modules/java.base/gensrc/GensrcExceptions.gmk make/modules/java.base/gensrc/GensrcLocaleData.gmk make/modules/java.base/gensrc/GensrcMisc.gmk make/modules/java.base/gensrc/GensrcModuleLoaderMap.gmk make/modules/java.base/gensrc/GensrcVarHandles.gmk make/modules/java.desktop/Gensrc.gmk make/modules/java.desktop/gensrc/GensrcIcons.gmk make/modules/java.desktop/gensrc/GensrcSwing.gmk make/modules/java.desktop/gensrc/GensrcX11Wrappers.gmk make/modules/java.logging/Gensrc.gmk make/modules/jdk.charsets/Gensrc.gmk make/modules/jdk.compiler/Gensrc.gmk make/modules/jdk.hotspot.agent/Gensrc.gmk make/modules/jdk.incubator.jpackage/Gensrc.gmk make/modules/jdk.internal.vm.compiler.management/Gensrc.gmk make/modules/jdk.internal.vm.compiler/Gensrc.gmk make/modules/jdk.jartool/Gensrc.gmk make/modules/jdk.javadoc/Gensrc.gmk make/modules/jdk.jdeps/Gensrc.gmk make/modules/jdk.jdi/Gensrc.gmk make/modules/jdk.jlink/Gensrc.gmk make/modules/jdk.jshell/Gensrc.gmk make/modules/jdk.localedata/Gensrc.gmk make/modules/jdk.management.agent/Gensrc.gmk
diffstat 34 files changed, 80 insertions(+), 199 deletions(-) [+]
line wrap: on
line diff
--- a/make/Main.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/Main.gmk	Tue May 19 15:59:51 2020 +0200
@@ -152,7 +152,7 @@
     FILE_PREFIX := Gendata, \
     MAKE_SUBDIR := gendata, \
     CHECK_MODULES := $(ALL_MODULES), \
-    USE_WRAPPER := true))
+))
 
 ALL_TARGETS += $(GENDATA_TARGETS)
 
@@ -163,7 +163,6 @@
     FILE_PREFIX := Copy, \
     MAKE_SUBDIR := copy, \
     CHECK_MODULES := $(ALL_MODULES), \
-    USE_WRAPPER := true, \
 ))
 
 ALL_COPY_MODULES += $(COPY_MODULES)
@@ -206,7 +205,7 @@
     FILE_PREFIX := Lib, \
     MAKE_SUBDIR := lib, \
     CHECK_MODULES := $(ALL_MODULES), \
-    USE_WRAPPER := true))
+))
 
 ALL_TARGETS += $(LIBS_TARGETS)
 
@@ -219,7 +218,6 @@
     FILE_PREFIX := Lib, \
     MAKE_SUBDIR := lib, \
     CHECK_MODULES := $(STATIC_LIBS_MODULES), \
-    USE_WRAPPER := true, \
     EXTRA_ARGS := STATIC_LIBS=true, \
 ))
 
@@ -232,7 +230,7 @@
     FILE_PREFIX := Launcher, \
     MAKE_SUBDIR := launcher, \
     CHECK_MODULES := $(ALL_MODULES), \
-    USE_WRAPPER := true))
+))
 
 ALL_TARGETS += $(LAUNCHER_TARGETS)
 
--- a/make/MainSupport.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/MainSupport.gmk	Tue May 19 15:59:51 2020 +0200
@@ -148,23 +148,12 @@
 # Param 2: Module name
 define DeclareRecipeForModuleMakefile
   $2-$$($1_TARGET_SUFFIX):
-        ifeq ($$($1_USE_WRAPPER), true)
-	  +($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) \
-	      -f ModuleWrapper.gmk -I $$(TOPDIR)/make/common/modules  \
-	      $$(addprefix -I, $$(PHASE_MAKEDIRS) \
-	          $$(addsuffix /modules/$2, $$(PHASE_MAKEDIRS)) \
-	      ) \
-	      MODULE=$2 MAKEFILE_PREFIX=$$($1_FILE_PREFIX) $$($1_EXTRA_ARGS))
-        else
-	  +($(CD) $$(TOPDIR)/make \
-	  && $(MAKE) $(MAKE_ARGS) \
-	      -f modules/$2/$$($1_FILE_PREFIX).gmk -I $$(TOPDIR)/make/common/modules \
-	      $$(addprefix -I, $$(PHASE_MAKEDIRS) \
-	          $$(addsuffix /modules/$2, $$(PHASE_MAKEDIRS)) \
-	      ) \
-	      MODULE=$2 $$($1_EXTRA_ARGS) \
-	  )
-        endif
+	+($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) \
+	    -f ModuleWrapper.gmk -I $$(TOPDIR)/make/common/modules  \
+	    $$(addprefix -I, $$(PHASE_MAKEDIRS) \
+	        $$(addsuffix /modules/$2, $$(PHASE_MAKEDIRS)) \
+	    ) \
+	    MODULE=$2 MAKEFILE_PREFIX=$$($1_FILE_PREFIX) $$($1_EXTRA_ARGS))
 
 endef
 
@@ -198,7 +187,6 @@
 # TARGET_SUFFIX : Suffix of target to create for recipe
 # MAKE_SUBDIR : Subdir for this build phase
 # FILE_PREFIX : File prefix for this build phase
-# USE_WRAPPER : Set to true to use ModuleWrapper.gmk
 # CHECK_MODULES : List of modules to try
 # MULTIPLE_MAKEFILES : Set to true to handle makefiles for the same module and
 #                      phase in multiple repos
--- a/make/common/modules/GensrcCommonJdk.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/common/modules/GensrcCommonJdk.gmk	Tue May 19 15:59:51 2020 +0200
@@ -23,10 +23,6 @@
 # questions.
 #
 
-default: all
-
-include $(SPEC)
-include MakeBase.gmk
 include Execute.gmk
 include JavaCompilation.gmk
 include NativeCompilation.gmk
--- a/make/common/modules/GensrcCommonLangtools.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/common/modules/GensrcCommonLangtools.gmk	Tue May 19 15:59:51 2020 +0200
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -22,12 +22,6 @@
 # or visit www.oracle.com if you need additional information or have any
 # questions.
 #
-
-# This must be the first rule
-default: all
-
-include $(SPEC)
-include MakeBase.gmk
 include JavaCompilation.gmk
 
 ################################################################################
@@ -131,4 +125,3 @@
   $$(strip $1) += $(SUPPORT_OUTPUTDIR)/gensrc/$(MODULE)/_the_parsed_props
 endef
 
-################################################################################
--- a/make/modules/java.base/Gensrc.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/java.base/Gensrc.gmk	Tue May 19 15:59:51 2020 +0200
@@ -36,6 +36,10 @@
 include gensrc/GensrcModuleLoaderMap.gmk
 include gensrc/GensrcEmojiData.gmk
 
+# GensrcLocaleData.gmk does not set TARGETS, so we must choose which targets
+# to include.
+TARGETS += $(GENSRC_BASELOCALEDATA)
+
 ################################################################################
 
 CLDR_DATA_DIR := $(TOPDIR)/make/data/cldr/common
@@ -61,7 +65,7 @@
 	    -tzdatadir $(TZ_DATA_DIR))
 	$(TOUCH) $@
 
-GENSRC_JAVA_BASE += $(CLDR_GEN_DONE)
+TARGETS += $(CLDR_GEN_DONE)
 
 ################################################################################
 
@@ -77,7 +81,7 @@
     CLASS := sun.util.resources.LocaleNamesBundle, \
 ))
 
-GENSRC_JAVA_BASE += $(LIST_RESOURCE_BUNDLE) $(SUN_UTIL)
+TARGETS += $(LIST_RESOURCE_BUNDLE) $(SUN_UTIL)
 
 # Some resources bundles are already present as java files but still need to be
 # copied to zh_HK locale.
@@ -86,7 +90,7 @@
         sun/security/util/AuthResources_zh_TW.java \
         sun/security/util/Resources_zh_TW.java)))
 
-GENSRC_JAVA_BASE += $(COPY_ZH_HK)
+TARGETS += $(COPY_ZH_HK)
 
 ################################################################################
 
@@ -96,7 +100,7 @@
 	$(call MakeDir, $(@D))
 	$(TOOL_GENERATELSREQUIVMAPS) $< $@
 
-GENSRC_JAVA_BASE += $(GENSRC_LSREQUIVMAPS)
+TARGETS += $(GENSRC_LSREQUIVMAPS)
 
 ################################################################################
 
@@ -111,12 +115,4 @@
 	    $(GENSRC_DIR)) $(LOG_DEBUG)
 	$(TOUCH) $@
 
-GENSRC_JAVA_BASE += $(INTPOLY_GEN_DONE)
-
-################################################################################
-
-java.base: $(GENSRC_JAVA_BASE)
-
-all: java.base
-
-.PHONY: all java.base
+TARGETS += $(INTPOLY_GEN_DONE)
--- a/make/modules/java.base/gensrc/GensrcBuffer.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/java.base/gensrc/GensrcBuffer.gmk	Tue May 19 15:59:51 2020 +0200
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -378,4 +378,5 @@
 ###
 
 $(GENSRC_BUFFER): $(BUILD_TOOLS_JDK)
-GENSRC_JAVA_BASE += $(GENSRC_BUFFER)
+
+TARGETS += $(GENSRC_BUFFER)
--- a/make/modules/java.base/gensrc/GensrcCharacterData.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/java.base/gensrc/GensrcCharacterData.gmk	Tue May 19 15:59:51 2020 +0200
@@ -64,6 +64,7 @@
 
 GENSRC_CHARACTERDATA += $(SUPPORT_OUTPUTDIR)/gensrc/java.base/java/lang/CharacterDataUndefined.java \
     $(SUPPORT_OUTPUTDIR)/gensrc/java.base/java/lang/CharacterDataPrivateUse.java
-GENSRC_JAVA_BASE += $(GENSRC_CHARACTERDATA)
 
 $(GENSRC_CHARACTERDATA): $(BUILD_TOOLS_JDK)
+
+TARGETS += $(GENSRC_CHARACTERDATA)
--- a/make/modules/java.base/gensrc/GensrcCharsetCoder.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/java.base/gensrc/GensrcCharsetCoder.gmk	Tue May 19 15:59:51 2020 +0200
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -100,8 +100,9 @@
 	$(MV) $@.tmp $@
 
 GENSRC_CHARSETCODER += $(GENSRC_CHARSETCODER_DST)/CharsetEncoder.java
-GENSRC_JAVA_BASE += $(GENSRC_CHARSETCODER)
 
 ################################################################################
 
 $(GENSRC_CHARSETCODER): $(BUILD_TOOLS_JDK)
+
+TARGETS += $(GENSRC_CHARSETCODER)
--- a/make/modules/java.base/gensrc/GensrcCharsetMapping.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/java.base/gensrc/GensrcCharsetMapping.gmk	Tue May 19 15:59:51 2020 +0200
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -53,4 +53,4 @@
             $(LOG_DEBUG)
 	$(TOUCH) '$@'
 
-GENSRC_JAVA_BASE += $(CHARSET_DONE_BASE)-stdcs
+TARGETS += $(CHARSET_DONE_BASE)-stdcs
--- a/make/modules/java.base/gensrc/GensrcEmojiData.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/java.base/gensrc/GensrcEmojiData.gmk	Tue May 19 15:59:51 2020 +0200
@@ -40,5 +40,4 @@
 		$(UNICODEDATA) \
 		$(GENSRC_EMOJIDATA)
 
-GENSRC_JAVA_BASE += $(GENSRC_EMOJIDATA)
-
+TARGETS += $(GENSRC_EMOJIDATA)
--- a/make/modules/java.base/gensrc/GensrcExceptions.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/java.base/gensrc/GensrcExceptions.gmk	Tue May 19 15:59:51 2020 +0200
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -41,6 +41,7 @@
 	$(TOUCH) $@
 
 GENSRC_EXCEPTIONS += $(foreach D,$(GENSRC_EXCEPTIONS_SRC_DIRS),$(GENSRC_EXCEPTIONS_DST)/_the.$(D).marker)
-GENSRC_JAVA_BASE += $(GENSRC_EXCEPTIONS)
 
 $(GENSRC_EXCEPTIONS): $(BUILD_TOOLS_JDK)
+
+TARGETS += $(GENSRC_EXCEPTIONS)
--- a/make/modules/java.base/gensrc/GensrcLocaleData.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/java.base/gensrc/GensrcLocaleData.gmk	Tue May 19 15:59:51 2020 +0200
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -147,7 +147,7 @@
 GENSRC_BASELOCALEDATA := $(SUPPORT_OUTPUTDIR)/gensrc/java.base/sun/util/locale/provider/BaseLocaleDataMetaInfo.java
 GENSRC_LOCALEDATA := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.localedata/sun/util/resources/provider/NonBaseLocaleDataMetaInfo.java
 
-GENSRC_JAVA_BASE += $(GENSRC_BASELOCALEDATA)
-GENSRC_JDK_LOCALEDATA += $(GENSRC_LOCALEDATA)
+################################################################################
 
-################################################################################
+# This file is included twice, by java.base and jdk.localedata. The includer must
+# add either GENSRC_BASELOCALEDATA or GENSRC_LOCALEDATA to TARGETS.
--- a/make/modules/java.base/gensrc/GensrcMisc.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/java.base/gensrc/GensrcMisc.gmk	Tue May 19 15:59:51 2020 +0200
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -50,7 +50,7 @@
         @@VENDOR_URL_VM_BUG@@ => $(VENDOR_URL_VM_BUG), \
 ))
 
-GENSRC_JAVA_BASE += $(BUILD_VERSION_JAVA)
+TARGETS += $(BUILD_VERSION_JAVA)
 
 ################################################################################
 
@@ -88,7 +88,7 @@
     $(TOPDIR)/src/java.base/share/classes/sun/nio/ch/SocketOptionRegistry.java.template
 	$(generate-preproc-src)
 
-GENSRC_JAVA_BASE += $(GENSRC_SOR_FILE)
+TARGETS += $(GENSRC_SOR_FILE)
 
 ################################################################################
 
@@ -100,7 +100,7 @@
       $(TOPDIR)/src/java.base/unix/classes/sun/nio/fs/UnixConstants.java.template
 	$(generate-preproc-src)
 
-  GENSRC_JAVA_BASE += $(GENSRC_UC_FILE)
+  TARGETS += $(GENSRC_UC_FILE)
 
 endif
 
@@ -114,7 +114,7 @@
       $(TOPDIR)/src/java.base/solaris/classes/sun/nio/fs/SolarisConstants.java.template
 	$(generate-preproc-src)
 
-  GENSRC_JAVA_BASE += $(GENSRC_SC_FILE)
+  TARGETS += $(GENSRC_SC_FILE)
 
 endif
 
@@ -135,5 +135,5 @@
         @@JCE_DEFAULT_POLICY@@ => $(JCE_DEFAULT_POLICY), \
   ))
 
-  GENSRC_JAVA_BASE += $(BUILD_JCESECURITY_JAVA)
+  TARGETS += $(BUILD_JCESECURITY_JAVA)
 endif
--- a/make/modules/java.base/gensrc/GensrcModuleLoaderMap.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/java.base/gensrc/GensrcModuleLoaderMap.gmk	Tue May 19 15:59:51 2020 +0200
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -52,6 +52,6 @@
 	     -platform $(PLATFORM_MODULES_LIST) -o $@.tmp $<
 	$(MV) $@.tmp $@
 
-GENSRC_JAVA_BASE += $(SUPPORT_OUTPUTDIR)/gensrc/java.base/jdk/internal/module/ModuleLoaderMap.java
+TARGETS += $(SUPPORT_OUTPUTDIR)/gensrc/java.base/jdk/internal/module/ModuleLoaderMap.java
 
 ################################################################################
--- a/make/modules/java.base/gensrc/GensrcVarHandles.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/java.base/gensrc/GensrcVarHandles.gmk	Tue May 19 15:59:51 2020 +0200
@@ -276,4 +276,4 @@
 $(foreach t, $(VARHANDLES_MEMORY_ADDRESS_TYPES), \
   $(eval $(call GenerateVarHandleMemoryAddress,VAR_HANDLE_MEMORY_ADDRESS_$t,$t)))
 
-GENSRC_JAVA_BASE += $(GENSRC_VARHANDLES)
+TARGETS += $(GENSRC_VARHANDLES)
--- a/make/modules/java.desktop/Gensrc.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/java.desktop/Gensrc.gmk	Tue May 19 15:59:51 2020 +0200
@@ -76,12 +76,4 @@
     CLASS := ListResourceBundle, \
 ))
 
-GENSRC_JAVA_DESKTOP += $(COMPILE_PROPERTIES)
-
-################################################################################
-
-java.desktop: $(GENSRC_JAVA_DESKTOP)
-
-all: java.desktop
-
-.PHONY: all java.desktop
+TARGETS += $(COMPILE_PROPERTIES)
--- a/make/modules/java.desktop/gensrc/GensrcIcons.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/java.desktop/gensrc/GensrcIcons.gmk	Tue May 19 15:59:51 2020 +0200
@@ -102,7 +102,7 @@
 
 $(foreach I, $(GENSRC_AWT_ICONS_SRC), $(eval $(call SetupGensrcAWTIcon,$(notdir $(I)),$(dir $(I)))))
 
-GENSRC_JAVA_DESKTOP += $(GENSRC_AWT_ICONS)
+TARGETS += $(GENSRC_AWT_ICONS)
 
 ################################################################################
 
@@ -123,5 +123,5 @@
 	$(ECHO) "};" >> $@.tmp
 	$(MV) $@.tmp $@
 
-  GENSRC_JAVA_DESKTOP += $(GENSRC_OSX_ICONS)
+  TARGETS += $(GENSRC_OSX_ICONS)
 endif
--- a/make/modules/java.desktop/gensrc/GensrcSwing.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/java.desktop/gensrc/GensrcSwing.gmk	Tue May 19 15:59:51 2020 +0200
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -40,4 +40,4 @@
 
 GENSRC_SWING_NIMBUS := $(SUPPORT_OUTPUTDIR)/gensrc/java.desktop/_the.generated_nimbus
 
-GENSRC_JAVA_DESKTOP += $(GENSRC_SWING_NIMBUS)
+TARGETS += $(GENSRC_SWING_NIMBUS)
--- a/make/modules/java.desktop/gensrc/GensrcX11Wrappers.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/java.desktop/gensrc/GensrcX11Wrappers.gmk	Tue May 19 15:59:51 2020 +0200
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2012, 2020, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -44,4 +44,4 @@
         $(OPENJDK_TARGET_CPU_BITS), \
 ))
 
-GENSRC_JAVA_DESKTOP += $(gen_x11wrappers_TARGET)
+TARGETS += $(gen_x11wrappers_TARGET)
--- a/make/modules/java.logging/Gensrc.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/java.logging/Gensrc.gmk	Tue May 19 15:59:51 2020 +0200
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -35,9 +35,3 @@
 ))
 
 TARGETS += $(COMPILE_PROPERTIES)
-
-################################################################################
-
-all: $(TARGETS)
-
-.PHONY: all
--- a/make/modules/jdk.charsets/Gensrc.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/jdk.charsets/Gensrc.gmk	Tue May 19 15:59:51 2020 +0200
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -76,17 +76,9 @@
 	$(call MakeDir, $(@D))
 	$(TOOL_CHARSETMAPPING) '$<' '$@' sjis0213
 
-GENSRC_JDK_CHARSETS += \
+TARGETS += \
     $(CHARSET_DONE_CS)-extcs \
     $(CHARSET_DONE_CS)-hkscs \
     $(CHARSET_DONE_CS)-euctw \
     $(CHARSET_GENSRC_JAVA_DIR_CS)/sjis0213.dat \
     #
-
-################################################################################
-
-jdk.charsets: $(GENSRC_JDK_CHARSETS)
-
-all: jdk.charsets
-
-.PHONY: all jdk.charsets
--- a/make/modules/jdk.compiler/Gensrc.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/jdk.compiler/Gensrc.gmk	Tue May 19 15:59:51 2020 +0200
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -35,4 +35,4 @@
 	com/sun/tools/javac/resources/compiler.properties \
 	com/sun/tools/javac/resources/launcher.properties))
 
-all: $(COMPILE_PROPERTIES) $(PARSE_PROPERTIES)
+TARGETS += $(COMPILE_PROPERTIES) $(PARSE_PROPERTIES)
--- a/make/modules/jdk.hotspot.agent/Gensrc.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/jdk.hotspot.agent/Gensrc.gmk	Tue May 19 15:59:51 2020 +0200
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -23,11 +23,6 @@
 # questions.
 #
 
-default: all
-
-include $(SPEC)
-include MakeBase.gmk
-
 ################################################################################
 
 SA_PROPERTIES := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.hotspot.agent/sa.properties
@@ -56,9 +51,3 @@
 
   TARGETS += $(MACH_EXC_SERVER)
 endif
-
-################################################################################
-
-all: $(TARGETS)
-
-.PHONY: all default
--- a/make/modules/jdk.incubator.jpackage/Gensrc.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/jdk.incubator.jpackage/Gensrc.gmk	Tue May 19 15:59:51 2020 +0200
@@ -38,9 +38,3 @@
 
   TARGETS := $(ENTITLEMENTS_TARGET_FILE)
 endif
-
-################################################################################
-
-all: $(TARGETS)
-
-.PHONY: all
--- a/make/modules/jdk.internal.vm.compiler.management/Gensrc.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/jdk.internal.vm.compiler.management/Gensrc.gmk	Tue May 19 15:59:51 2020 +0200
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -23,11 +23,6 @@
 # questions.
 #
 
-default: all
-
-include $(SPEC)
-include MakeBase.gmk
-
 GENSRC_DIR := $(SUPPORT_OUTPUTDIR)/gensrc/$(MODULE)
 SRC_DIR := $(TOPDIR)/src/$(MODULE)/share/classes
 
@@ -93,9 +88,3 @@
 	$(ECHO) "    ;" >> $@;
 
 TARGETS += $(GENSRC_DIR)/module-info.java.extra
-
-################################################################################
-
-all: $(TARGETS)
-
-.PHONY: default all
--- a/make/modules/jdk.internal.vm.compiler/Gensrc.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/jdk.internal.vm.compiler/Gensrc.gmk	Tue May 19 15:59:51 2020 +0200
@@ -23,11 +23,6 @@
 # questions.
 #
 
-default: all
-
-include $(SPEC)
-include MakeBase.gmk
-
 GENSRC_DIR := $(SUPPORT_OUTPUTDIR)/gensrc/$(MODULE)
 SRC_DIR := $(TOPDIR)/src/$(MODULE)/share/classes
 
@@ -157,9 +152,3 @@
 	$(ECHO) "    ;" >> $@;
 
 TARGETS += $(GENSRC_DIR)/module-info.java.extra
-
-################################################################################
-
-all: $(TARGETS)
-
-.PHONY: default all
--- a/make/modules/jdk.jartool/Gensrc.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/jdk.jartool/Gensrc.gmk	Tue May 19 15:59:51 2020 +0200
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -35,9 +35,3 @@
 ))
 
 TARGETS += $(COMPILE_PROPERTIES)
-
-################################################################################
-
-all: $(TARGETS)
-
-.PHONY: all
--- a/make/modules/jdk.javadoc/Gensrc.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/jdk.javadoc/Gensrc.gmk	Tue May 19 15:59:51 2020 +0200
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -33,4 +33,4 @@
 
 $(eval $(call SetupCompileProperties,COMPILE_PROPERTIES, $(JAVADOC_VERSION)))
 
-all: $(COMPILE_PROPERTIES)
+TARGETS += $(COMPILE_PROPERTIES)
--- a/make/modules/jdk.jdeps/Gensrc.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/jdk.jdeps/Gensrc.gmk	Tue May 19 15:59:51 2020 +0200
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -34,4 +34,4 @@
 $(eval $(call SetupCompileProperties,COMPILE_PROPERTIES,\
     $(JDEPS_VERSION) $(JAVAP_VERSION)))
 
-all: $(COMPILE_PROPERTIES)
+TARGETS += $(COMPILE_PROPERTIES)
--- a/make/modules/jdk.jdi/Gensrc.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/jdk.jdi/Gensrc.gmk	Tue May 19 15:59:51 2020 +0200
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -32,6 +32,7 @@
 JDWP_SPEC_FILE := $(TOPDIR)/make/data/jdwp/jdwp.spec
 HEADER_FILE := $(SUPPORT_OUTPUTDIR)/headers/jdk.jdwp.agent/JDWPCommands.h
 JAVA_FILE := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.jdi/com/sun/tools/jdi/JDWP.java
+HTML_FILE := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.jdi/jdwp-protocol.html
 
 # Both the header and java file are created using the same recipe. By declaring
 # this rule and adding header file to dependencies for java file, both are
@@ -47,17 +48,14 @@
 	    $(SUPPORT_OUTPUTDIR)/headers/jdk.jdwp.agent/JDWPCommands.h
 	$(TOUCH) $@
 
-$(SUPPORT_OUTPUTDIR)/gensrc/jdk.jdi/jdwp-protocol.html: $(JDWP_SPEC_FILE) \
+$(HTML_FILE): $(JDWP_SPEC_FILE) \
     $(BUILD_TOOLS_JDK)
 	$(call LogInfo, Creating $(@F) from jdwp.spec)
 	$(call MakeDir, $(@D))
 	$(RM) $@
 	$(TOOL_JDWPGEN) $< -doc $@
 
-GENSRC_JDWP := $(SUPPORT_OUTPUTDIR)/gensrc/jdk.jdi/com/sun/tools/jdi/JDWP.java \
-    $(SUPPORT_OUTPUTDIR)/headers/jdk.jdwp.agent/JDWPCommands.h \
-    $(SUPPORT_OUTPUTDIR)/gensrc/jdk.jdi/jdwp-protocol.html
-GENSRC_JDK_JDI += $(GENSRC_JDWP)
+TARGETS += $(JAVA_FILE) $(HEADER_FILE) $(HTML_FILE)
 
 ################################################################################
 
@@ -68,12 +66,4 @@
     CLASS := ListResourceBundle, \
 ))
 
-GENSRC_JDK_JDI += $(COMPILE_PROPERTIES)
-
-################################################################################
-
-jdk.jdi: $(GENSRC_JDK_JDI)
-
-all: jdk.jdi
-
-.PHONY: all jdk.jdi
+TARGETS += $(COMPILE_PROPERTIES)
--- a/make/modules/jdk.jlink/Gensrc.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/jdk.jlink/Gensrc.gmk	Tue May 19 15:59:51 2020 +0200
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -50,9 +50,3 @@
 
 
 TARGETS += $(JLINK_PROPERTIES) $(JMOD_PROPERTIES) $(JIMAGE_PROPERTIES)
-
-################################################################################
-
-all: $(TARGETS)
-
-.PHONY: all
--- a/make/modules/jdk.jshell/Gensrc.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/jdk.jshell/Gensrc.gmk	Tue May 19 15:59:51 2020 +0200
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -31,4 +31,4 @@
 $(eval $(call SetupCompileProperties,COMPILE_PROPERTIES, \
     $(JSHELL_VERSION) $(JAVAH_VERSION)))
 
-all: $(COMPILE_PROPERTIES)
+TARGETS += $(COMPILE_PROPERTIES)
--- a/make/modules/jdk.localedata/Gensrc.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/jdk.localedata/Gensrc.gmk	Tue May 19 15:59:51 2020 +0200
@@ -27,6 +27,10 @@
 
 include modules/java.base/gensrc/GensrcLocaleData.gmk
 
+# GensrcLocaleData.gmk does not set TARGETS, so we must choose which targets
+# to include.
+TARGETS += $(GENSRC_LOCALEDATA)
+
 ################################################################################
 
 CLDR_DATA_DIR := $(TOPDIR)/make/data/cldr/common
@@ -45,7 +49,7 @@
 	    -o $(GENSRC_DIR))
 	$(TOUCH) $@
 
-GENSRC_JDK_LOCALEDATA += $(CLDR_GEN_DONE)
+TARGETS += $(CLDR_GEN_DONE)
 
 ################################################################################
 
@@ -58,12 +62,4 @@
 ))
 
 # Skip generating zh_HK from zh_TW for this module.
-GENSRC_JDK_LOCALEDATA += $(filter-out %_zh_HK.java, $(COMPILE_PROPERTIES))
-
-################################################################################
-
-jdk.localedata: $(GENSRC_JDK_LOCALEDATA)
-
-all: jdk.localedata
-
-.PHONY: all jdk.localedata
+TARGETS += $(filter-out %_zh_HK.java, $(COMPILE_PROPERTIES))
--- a/make/modules/jdk.management.agent/Gensrc.gmk	Tue May 19 15:49:46 2020 +0200
+++ b/make/modules/jdk.management.agent/Gensrc.gmk	Tue May 19 15:59:51 2020 +0200
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 #
 # This code is free software; you can redistribute it and/or modify it
@@ -35,9 +35,3 @@
 ))
 
 TARGETS += $(COMPILE_PROPERTIES)
-
-################################################################################
-
-all: $(TARGETS)
-
-.PHONY: all