make/TestImage.gmk
author pmuthuswamy
Tue, 17 Jul 2018 16:49:55 +0530
changeset 51127 c2e676c2cf7b
parent 47984 89c26000ce52
child 53683 48ff68e2fe5c
permissions -rw-r--r--
8207190: JDK 11 javadoc generates bad code example Reviewed-by: sundar
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
47984
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
     1
#
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
     2
# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
     4
#
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    10
#
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    15
# accompanied this code).
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    16
#
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    20
#
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    23
# questions.
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    24
#
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    25
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    26
default: all
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    27
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    28
include $(SPEC)
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    29
include MakeBase.gmk
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    30
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    31
############################################################################
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    32
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    33
ifeq ($(OPENJDK_TARGET_OS), windows)
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    34
  FIXPATH_COPY := $(TEST_IMAGE_DIR)/bin/fixpath.exe
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    35
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    36
  $(FIXPATH_COPY): $(firstword $(FIXPATH))
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    37
	$(call install-file)
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    38
endif
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    39
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    40
prepare-test-image: $(FIXPATH_COPY)
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    41
	$(call MakeDir, $(TEST_IMAGE_DIR))
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    42
	$(ECHO) > $(TEST_IMAGE_DIR)/Readme.txt 'JDK test image'
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    43
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    44
all: prepare-test-image
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    45
89c26000ce52 8192067: Add fixpath to test image
ihse
parents:
diff changeset
    46
.PHONY: default all prepare-test-image