Thu, 03 Sep 2009 17:44:28 -0700
6855174: Improve log output when builds transition from one workspace to another
Reviewed-by: jjg
1 #
2 # Copyright 2001-2009 Sun Microsystems, Inc. All Rights Reserved.
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. Sun designates this
8 # particular file as subject to the "Classpath" exception as provided
9 # by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22 # CA 95054 USA or visit www.sun.com if you need additional information or
23 # have any questions.
24 #
26 ################################################################
27 # JDK TARGETS
28 ################################################################
30 JDK_JAVA_EXE = $(OUTPUTDIR)/bin/java$(EXE_SUFFIX)
32 # NO_IMAGES may be set in conjunction with DEV_ONLY
33 ifdef NO_IMAGES
34 IMAGES_TARGET =
35 else
36 IMAGES_TARGET = images
37 endif
39 # No DOCS build when JDK_UPDATE_VERSION set
40 ifdef JDK_UPDATE_VERSION
41 DOCS_TARGET =
42 else
43 DOCS_TARGET = docs
44 endif
46 # NO_DOCS may be set in conjunction with DEV_ONLY
47 ifdef NO_DOCS
48 DOCS_TARGET =
49 endif
51 # If langtools not being built, full jdk javadoc is not possible
52 ifneq ($(BUILD_LANGTOOLS), true)
53 DOCS_TARGET =
54 endif
55 ifneq ($(BUILD_CORBA), true)
56 DOCS_TARGET =
57 endif
58 ifneq ($(BUILD_JAXP), true)
59 DOCS_TARGET =
60 endif
61 ifneq ($(BUILD_JAXWS), true)
62 DOCS_TARGET =
63 endif
65 ifndef DEV_ONLY
66 JDK_BUILD_TARGETS = sanity all $(DOCS_TARGET) images
67 else
68 JDK_BUILD_TARGETS = sanity all $(IMAGES_TARGET)
69 endif
71 JDK_CLOBBER_TARGETS = clobber
73 JDK_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \
74 ALT_OUTPUTDIR=$(ABS_OUTPUTDIR)
76 ifeq ($(BUILD_LANGTOOLS), true)
77 JDK_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
78 endif
79 ifeq ($(BUILD_CORBA), true)
80 JDK_BUILD_ARGUMENTS += ALT_CORBA_DIST=$(ABS_CORBA_DIST)
81 endif
82 ifeq ($(BUILD_JAXP), true)
83 JDK_BUILD_ARGUMENTS += ALT_JAXP_DIST=$(ABS_JAXP_DIST)
84 endif
85 ifeq ($(BUILD_JAXWS), true)
86 JDK_BUILD_ARGUMENTS += ALT_JAXWS_DIST=$(ABS_JAXWS_DIST)
87 endif
89 ifeq ($(BUILD_HOTSPOT), true)
90 JDK_BUILD_ARGUMENTS += ALT_HOTSPOT_IMPORT_PATH=$(HOTSPOT_DIR)/import
91 endif
93 JDK_BUILD_ARGUMENTS += \
94 BUILD_HOTSPOT=$(BUILD_HOTSPOT)
97 $(JDK_JAVA_EXE):: jdk-build
99 jdk: jdk-build
100 jdk-build:
101 @$(call MakeStart, jdk, $(JDK_BUILD_TARGETS))
102 ( $(CD) $(JDK_TOPDIR)/make && \
103 $(MAKE) $(JDK_BUILD_TARGETS) $(JDK_BUILD_ARGUMENTS) ; )
104 @$(call MakeFinish, jdk, $(JDK_BUILD_TARGETS))
106 jdk-clobber::
107 @$(call MakeStart, jdk, $(JDK_CLOBBER_TARGETS))
108 ( $(CD) $(JDK_TOPDIR)/make && \
109 $(MAKE) $(JDK_CLOBBER_TARGETS) $(JDK_BUILD_ARGUMENTS) ; )
110 @$(call MakeFinish, jdk, $(JDK_CLOBBER_TARGETS))
112 jdk-sanity::
113 ( $(CD) $(JDK_TOPDIR)/make && \
114 $(MAKE) sanity HOTSPOT_IMPORT_CHECK=false $(JDK_BUILD_ARGUMENTS) ; )
116 compare-images: compare-image
117 compare-image:
118 @$(call MakeStart, jdk, compare-image)
119 ( $(CD) $(JDK_TOPDIR)/make && \
120 $(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image )
121 @$(call MakeFinish, jdk, compare-image)
123 compare-images-clobber: compare-image-clobber
124 compare-image-clobber:
125 @$(call MakeStart, jdk, compare-image-clobber)
126 ( $(CD) $(JDK_TOPDIR)/make && \
127 $(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image-clobber )
128 @$(call MakeFinish, jdk, compare-image-clobber)
130 .PHONY: jdk jdk-build jdk-clobber jdk-sanity