annotate make/Install.gmk @ 25854:98ce0879ab4c

8054834: Modular Source Code Reviewed-by: alanb, chegar, ihse, mduigou Contributed-by: alan.bateman@oracle.com, alex.buckley@oracle.com, chris.hegarty@oracle.com, erik.joelsson@oracle.com, jonathan.gibbons@oracle.com, karen.kinnear@oracle.com, magnus.ihse.bursie@oracle.com, mandy.chung@oracle.com, mark.reinhold@oracle.com, paul.sandoz@oracle.com
author chegar
date Sun, 17 Aug 2014 15:51:37 +0100
parents
children 3a19edba4808
rev   line source
chegar@25854 1 #
chegar@25854 2 # Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
chegar@25854 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
chegar@25854 4 #
chegar@25854 5 # This code is free software; you can redistribute it and/or modify it
chegar@25854 6 # under the terms of the GNU General Public License version 2 only, as
chegar@25854 7 # published by the Free Software Foundation. Oracle designates this
chegar@25854 8 # particular file as subject to the "Classpath" exception as provided
chegar@25854 9 # by Oracle in the LICENSE file that accompanied this code.
chegar@25854 10 #
chegar@25854 11 # This code is distributed in the hope that it will be useful, but WITHOUT
chegar@25854 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
chegar@25854 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
chegar@25854 14 # version 2 for more details (a copy is included in the LICENSE file that
chegar@25854 15 # accompanied this code).
chegar@25854 16 #
chegar@25854 17 # You should have received a copy of the GNU General Public License version
chegar@25854 18 # 2 along with this work; if not, write to the Free Software Foundation,
chegar@25854 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
chegar@25854 20 #
chegar@25854 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
chegar@25854 22 # or visit www.oracle.com if you need additional information or have any
chegar@25854 23 # questions.
chegar@25854 24 #
chegar@25854 25
chegar@25854 26 default: install
chegar@25854 27
chegar@25854 28 include $(SPEC)
chegar@25854 29
chegar@25854 30 BINARIES := $(notdir $(wildcard $(JDK_IMAGE_DIR)/bin/*))
chegar@25854 31 INSTALLDIR := openjdk-$(RELEASE)
chegar@25854 32
chegar@25854 33 # Install the jdk image, in a very crude way. Not taking into
chegar@25854 34 # account, how to install properly on macosx or windows etc.
chegar@25854 35 install:
chegar@25854 36 echo Installing jdk image into $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)
chegar@25854 37 echo and creating $(words $(BINARIES)) links from $(INSTALL_PREFIX)/bin into the jdk.
chegar@25854 38 $(MKDIR) -p $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)
chegar@25854 39 $(RM) -r $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)/*
chegar@25854 40 $(CP) -rp $(JDK_IMAGE_DIR)/* $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)
chegar@25854 41 $(MKDIR) -p $(INSTALL_PREFIX)/bin
chegar@25854 42 $(RM) $(addprefix $(INSTALL_PREFIX)/bin/, $(BINARIES))
chegar@25854 43 $(foreach b, $(BINARIES), $(LN) -s $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)/bin/$b $(INSTALL_PREFIX)/bin/$b &&) true