annotate make/CreateBuildJdkCopy.gmk @ 2608:69879afbd98f

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