author | brutisso |
Wed, 16 Dec 2015 09:24:48 +0100 | |
changeset 35177 | 22c9af3d46fd |
parent 33926 | 3a19edba4808 |
permissions | -rw-r--r-- |
25854 | 1 |
# |
33926
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
25854
diff
changeset
|
2 |
# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
25854 | 3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
# |
|
5 |
# This code is free software; you can redistribute it and/or modify it |
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
|
7 |
# published by the Free Software Foundation. Oracle designates this |
|
8 |
# particular file as subject to the "Classpath" exception as provided |
|
9 |
# by Oracle in the LICENSE file that accompanied this code. |
|
10 |
# |
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
# accompanied this code). |
|
16 |
# |
|
17 |
# You should have received a copy of the GNU General Public License version |
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
# |
|
21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
22 |
# or visit www.oracle.com if you need additional information or have any |
|
23 |
# questions. |
|
24 |
# |
|
25 |
||
26 |
default: install |
|
27 |
||
28 |
include $(SPEC) |
|
29 |
||
30 |
BINARIES := $(notdir $(wildcard $(JDK_IMAGE_DIR)/bin/*)) |
|
33926
3a19edba4808
8085822: JEP 223: New Version-String Scheme (initial integration)
ihse
parents:
25854
diff
changeset
|
31 |
INSTALLDIR := openjdk-$(VERSION_SHORT) |
25854 | 32 |
|
33 |
# Install the jdk image, in a very crude way. Not taking into |
|
34 |
# account, how to install properly on macosx or windows etc. |
|
35 |
install: |
|
36 |
echo Installing jdk image into $(INSTALL_PREFIX)/jvm/$(INSTALLDIR) |
|
37 |
echo and creating $(words $(BINARIES)) links from $(INSTALL_PREFIX)/bin into the jdk. |
|
38 |
$(MKDIR) -p $(INSTALL_PREFIX)/jvm/$(INSTALLDIR) |
|
39 |
$(RM) -r $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)/* |
|
40 |
$(CP) -rp $(JDK_IMAGE_DIR)/* $(INSTALL_PREFIX)/jvm/$(INSTALLDIR) |
|
41 |
$(MKDIR) -p $(INSTALL_PREFIX)/bin |
|
42 |
$(RM) $(addprefix $(INSTALL_PREFIX)/bin/, $(BINARIES)) |
|
43 |
$(foreach b, $(BINARIES), $(LN) -s $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)/bin/$b $(INSTALL_PREFIX)/bin/$b &&) true |