annotate make/CreateBuildJdkCopy.gmk @ 52350:51a3e729535c

8212941: Loosen the range of JapaneseEra Reviewed-by: rriggs
author naoto
date Tue, 30 Oct 2018 10:32:54 -0700
parents 92fd0e04e0e1
children 28094715ae71
rev   line source
alanb@36506 1 #
ihse@41458 2 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
alanb@36506 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
alanb@36506 4 #
alanb@36506 5 # This code is free software; you can redistribute it and/or modify it
alanb@36506 6 # under the terms of the GNU General Public License version 2 only, as
alanb@36506 7 # published by the Free Software Foundation. Oracle designates this
alanb@36506 8 # particular file as subject to the "Classpath" exception as provided
alanb@36506 9 # by Oracle in the LICENSE file that accompanied this code.
alanb@36506 10 #
alanb@36506 11 # This code is distributed in the hope that it will be useful, but WITHOUT
alanb@36506 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
alanb@36506 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
alanb@36506 14 # version 2 for more details (a copy is included in the LICENSE file that
alanb@36506 15 # accompanied this code).
alanb@36506 16 #
alanb@36506 17 # You should have received a copy of the GNU General Public License version
alanb@36506 18 # 2 along with this work; if not, write to the Free Software Foundation,
alanb@36506 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
alanb@36506 20 #
alanb@36506 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
alanb@36506 22 # or visit www.oracle.com if you need additional information or have any
alanb@36506 23 # questions.
alanb@36506 24 #
alanb@36506 25
alanb@36506 26 default: all
alanb@36506 27
alanb@36506 28 include $(SPEC)
alanb@36506 29 include MakeBase.gmk
alanb@36506 30 include Modules.gmk
alanb@36506 31
redestad@37770 32 MODULES_TO_COPY := $(sort \
redestad@37770 33 $(foreach m, jdk.jlink $(INTERIM_IMAGE_MODULES), \
redestad@37770 34 $(call FindTransitiveDepsForModule, $m) $m))
alanb@36506 35
alanb@36506 36 ################################################################################
alanb@36506 37 # Copy the modules needed to run jlink and jmod. Use bulk copy instead of
alanb@36506 38 # SetupCopyFiles since there are so many files.
alanb@36506 39
alanb@37764 40 COPY_CLASSES_TARGET := $(BUILDJDK_OUTPUTDIR)/jdk/modules/java.base/_the.buildjdk-copy-marker
alanb@36506 41
alanb@36506 42 $(COPY_CLASSES_TARGET): $(call CacheFind, $(wildcard \
alanb@36506 43 $(addprefix $(JDK_OUTPUTDIR)/modules/, $(MODULES_TO_COPY))))
erikj@52085 44 $(call LogInfo, Copying java modules to buildjdk: $(MODULES_TO_COPY))
alanb@36506 45 $(RM) -r $(BUILDJDK_OUTPUTDIR)/jdk/modules
alanb@36506 46 $(MKDIR) -p $(BUILDJDK_OUTPUTDIR)/jdk/modules
alanb@36506 47 $(foreach m, $(MODULES_TO_COPY), \
alanb@36506 48 $(CP) -R $(JDK_OUTPUTDIR)/modules/$m \
alanb@36506 49 $(BUILDJDK_OUTPUTDIR)/jdk/modules/ $(NEWLINE))
alanb@36506 50 $(TOUCH) $@
alanb@36506 51
alanb@36506 52 TARGETS += $(COPY_CLASSES_TARGET)
alanb@36506 53
alanb@36506 54 ################################################################################
alanb@36506 55
alanb@36506 56 $(eval $(call SetupCopyFiles, COPY_SUPPORT_HEADERS, \
ihse@47253 57 SRC := $(OUTPUTDIR), \
alanb@36506 58 DEST := $(BUILDJDK_OUTPUTDIR), \
alanb@36506 59 FILES := $(call CacheFind, $(wildcard \
alanb@36506 60 $(addprefix $(SUPPORT_OUTPUTDIR)/headers/, $(MODULES_TO_COPY)))), \
alanb@36506 61 ))
alanb@36506 62
alanb@36506 63 TARGETS += $(COPY_SUPPORT_HEADERS)
alanb@36506 64
alanb@36506 65 ################################################################################
alanb@36506 66
alanb@36506 67 $(eval $(call SetupCopyFiles, COPY_JDK_LIB_FILES, \
ihse@47253 68 SRC := $(OUTPUTDIR), \
alanb@36506 69 DEST := $(BUILDJDK_OUTPUTDIR), \
alanb@36506 70 FILES := $(JDK_OUTPUTDIR)/lib/tzdb.dat, \
alanb@36506 71 ))
alanb@36506 72
alanb@36506 73 TARGETS += $(COPY_JDK_LIB_FILES)
alanb@36506 74
alanb@36506 75 ################################################################################
alanb@36506 76
alanb@36506 77 all: $(TARGETS)
alanb@36506 78
alanb@36506 79 .PHONY: default all