annotate common/makefiles/Main.gmk @ 888:8a7e97848471

Merge
author jlaskey
date Mon, 15 Apr 2013 08:06:34 -0300
parents 7da551071fe8 1378ccca1c79
children 1fca390200c1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
492
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
1 #
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
2 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
4 #
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
5 # This code is free software; you can redistribute it and/or modify it
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
6 # under the terms of the GNU General Public License version 2 only, as
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
7 # published by the Free Software Foundation. Oracle designates this
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
8 # particular file as subject to the "Classpath" exception as provided
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
9 # by Oracle in the LICENSE file that accompanied this code.
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
10 #
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
11 # This code is distributed in the hope that it will be useful, but WITHOUT
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
14 # version 2 for more details (a copy is included in the LICENSE file that
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
15 # accompanied this code).
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
16 #
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
17 # You should have received a copy of the GNU General Public License version
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
18 # 2 along with this work; if not, write to the Free Software Foundation,
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
20 #
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
22 # or visit www.oracle.com if you need additional information or have any
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
23 # questions.
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
24 #
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
25
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
26 ### This is the main part of the Makefile, for the normal case with SPEC specifying a single existing spec.gmk file.
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
27
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
28 # Now load the spec
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
29 include $(SPEC)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
30
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
31 # Load the vital tools for all the makefiles.
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
32 include $(SRC_ROOT)/common/makefiles/MakeBase.gmk
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
33
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
34 # Include the corresponding custom file, if present.
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
35 -include $(CUSTOM_MAKE_DIR)/Main.gmk
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
36
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
37 ### Clean up from previous run
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
38
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
39 # Remove any build.log from a previous run, if they exist
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
40 ifneq (,$(BUILD_LOG))
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
41 ifneq (,$(BUILD_LOG_PREVIOUS))
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
42 # Rotate old log
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
43 $(shell $(RM) $(BUILD_LOG_PREVIOUS) 2> /dev/null)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
44 $(shell $(MV) $(BUILD_LOG) $(BUILD_LOG_PREVIOUS) 2> /dev/null)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
45 else
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
46 $(shell $(RM) $(BUILD_LOG) 2> /dev/null)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
47 endif
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
48 $(shell $(RM) $(OUTPUT_ROOT)/build-trace-time.log 2> /dev/null)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
49 endif
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
50 # Remove any javac server logs and port files. This
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
51 # prevents a new make run to reuse the previous servers.
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
52 ifneq (,$(SJAVAC_SERVER_DIR))
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
53 $(shell $(MKDIR) -p $(SJAVAC_SERVER_DIR) && $(RM) -rf $(SJAVAC_SERVER_DIR)/*)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
54 endif
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
55
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
56 # Reset the build timers.
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
57 $(eval $(call ResetAllTimers))
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
58
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
59 # Setup number of jobs to use. -jN is unfortunately not available for us to parse from the command line,
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
60 # hence this workaround.
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
61 MAKE_ARGS:=$(MAKE_ARGS) -j$(JOBS)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
62
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
63 ### Main targets
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
64
557
ef6adbf511cc 8005549: build-infra: Merge NewMakefile.gmk and common/makefiles/Makefile
erikj
parents: 516
diff changeset
65 default: jdk
ef6adbf511cc 8005549: build-infra: Merge NewMakefile.gmk and common/makefiles/Makefile
erikj
parents: 516
diff changeset
66 @$(call CheckIfMakeAtEnd)
ef6adbf511cc 8005549: build-infra: Merge NewMakefile.gmk and common/makefiles/Makefile
erikj
parents: 516
diff changeset
67
ef6adbf511cc 8005549: build-infra: Merge NewMakefile.gmk and common/makefiles/Makefile
erikj
parents: 516
diff changeset
68 all: images docs
ef6adbf511cc 8005549: build-infra: Merge NewMakefile.gmk and common/makefiles/Makefile
erikj
parents: 516
diff changeset
69 @$(call CheckIfMakeAtEnd)
492
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
70
564
9263657c2756 8005692: build-infra: Target "all" should do the right thing
erikj
parents: 561
diff changeset
71 ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_BITS),solaris-64)
9263657c2756 8005692: build-infra: Target "all" should do the right thing
erikj
parents: 561
diff changeset
72 all: overlay-images
9263657c2756 8005692: build-infra: Target "all" should do the right thing
erikj
parents: 561
diff changeset
73 endif
9263657c2756 8005692: build-infra: Target "all" should do the right thing
erikj
parents: 561
diff changeset
74
607
339e4df096a2 8007093: build-infra: Make should fail if spec is older than configure files
erikj
parents: 564
diff changeset
75 # Setup a rule for SPEC file that fails if executed. This check makes sure the configuration
339e4df096a2 8007093: build-infra: Make should fail if spec is older than configure files
erikj
parents: 564
diff changeset
76 # is up to date after changes to configure
339e4df096a2 8007093: build-infra: Make should fail if spec is older than configure files
erikj
parents: 564
diff changeset
77 $(SPEC): $(wildcard $(SRC_ROOT)/common/autoconf/*)
339e4df096a2 8007093: build-infra: Make should fail if spec is older than configure files
erikj
parents: 564
diff changeset
78 @$(ECHO) ERROR: $(SPEC) is not up to date
339e4df096a2 8007093: build-infra: Make should fail if spec is older than configure files
erikj
parents: 564
diff changeset
79 @$(ECHO) Please rerun configure!
339e4df096a2 8007093: build-infra: Make should fail if spec is older than configure files
erikj
parents: 564
diff changeset
80 @if test "x$(IGNORE_OLD_CONFIG)" != "xtrue"; then exit 1; fi
339e4df096a2 8007093: build-infra: Make should fail if spec is older than configure files
erikj
parents: 564
diff changeset
81
339e4df096a2 8007093: build-infra: Make should fail if spec is older than configure files
erikj
parents: 564
diff changeset
82 start-make: $(SPEC)
492
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
83 @$(call AtMakeStart)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
84
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
85 langtools: langtools-only
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
86 langtools-only: start-make
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
87 @$(call TargetEnter)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
88 @($(CD) $(LANGTOOLS_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildLangtools.gmk)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
89 @$(call TargetExit)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
90
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
91 corba: langtools corba-only
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
92 corba-only: start-make
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
93 @$(call TargetEnter)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
94 @($(CD) $(CORBA_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildCorba.gmk)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
95 @$(call TargetExit)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
96
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
97 jaxp: langtools jaxp-only
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
98 jaxp-only: start-make
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
99 @$(call TargetEnter)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
100 @($(CD) $(JAXP_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJaxp.gmk)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
101 @$(call TargetExit)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
102
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
103 jaxws: langtools jaxp jaxws-only
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
104 jaxws-only: start-make
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
105 @$(call TargetEnter)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
106 @($(CD) $(JAXWS_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJaxws.gmk)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
107 @$(call TargetExit)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
108
504
78bb27faf889 8002028: build-infra: need no-hotspot partial build
tbell
parents: 492
diff changeset
109 ifeq ($(BUILD_HOTSPOT),true)
492
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
110 hotspot: hotspot-only
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
111 hotspot-only: start-make
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
112 @$(call TargetEnter)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
113 @($(CD) $(SRC_ROOT)/common/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f HotspotWrapper.gmk)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
114 @$(call TargetExit)
504
78bb27faf889 8002028: build-infra: need no-hotspot partial build
tbell
parents: 492
diff changeset
115 endif
492
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
116
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
117 jdk: langtools hotspot corba jaxp jaxws jdk-only
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
118 jdk-only: start-make
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
119 @$(call TargetEnter)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
120 @($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk $(JDK_TARGET))
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
121 @$(call TargetExit)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
122
643
5b0b6ef58dbf 8008914: Add nashorn to the tl build
jjg
parents: 625
diff changeset
123 nashorn: jdk nashorn-only
5b0b6ef58dbf 8008914: Add nashorn to the tl build
jjg
parents: 625
diff changeset
124 nashorn-only: start-make
5b0b6ef58dbf 8008914: Add nashorn to the tl build
jjg
parents: 625
diff changeset
125 @$(call TargetEnter)
5b0b6ef58dbf 8008914: Add nashorn to the tl build
jjg
parents: 625
diff changeset
126 @($(CD) $(NASHORN_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildNashorn.gmk)
5b0b6ef58dbf 8008914: Add nashorn to the tl build
jjg
parents: 625
diff changeset
127 @$(call TargetExit)
5b0b6ef58dbf 8008914: Add nashorn to the tl build
jjg
parents: 625
diff changeset
128
492
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
129 demos: jdk demos-only
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
130 demos-only: start-make
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
131 @$(call TargetEnter)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
132 @($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk demos)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
133 @$(call TargetExit)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
134
622
7ed0c9db6943 8004265: Add build support for Compact Profiles
dholmes
parents: 564
diff changeset
135 # Note: This double-colon rule is intentional, to support
7ed0c9db6943 8004265: Add build support for Compact Profiles
dholmes
parents: 564
diff changeset
136 # custom make file integration.
643
5b0b6ef58dbf 8008914: Add nashorn to the tl build
jjg
parents: 625
diff changeset
137 images:: source-tips demos nashorn images-only
492
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
138 images-only: start-make
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
139 @$(call TargetEnter)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
140 @($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk images)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
141 @$(call TargetExit)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
142
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
143 overlay-images: source-tips demos overlay-images-only
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
144 overlay-images-only: start-make
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
145 @$(call TargetEnter)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
146 @($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk overlay-images)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
147 @$(call TargetExit)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
148
622
7ed0c9db6943 8004265: Add build support for Compact Profiles
dholmes
parents: 564
diff changeset
149 profiles: profiles-oscheck source-tips jdk hotspot profiles-only
7ed0c9db6943 8004265: Add build support for Compact Profiles
dholmes
parents: 564
diff changeset
150 profiles-only: start-make
7ed0c9db6943 8004265: Add build support for Compact Profiles
dholmes
parents: 564
diff changeset
151 @$(call TargetEnter)
7ed0c9db6943 8004265: Add build support for Compact Profiles
dholmes
parents: 564
diff changeset
152 @($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk profiles)
7ed0c9db6943 8004265: Add build support for Compact Profiles
dholmes
parents: 564
diff changeset
153 @$(call TargetExit)
7ed0c9db6943 8004265: Add build support for Compact Profiles
dholmes
parents: 564
diff changeset
154
7ed0c9db6943 8004265: Add build support for Compact Profiles
dholmes
parents: 564
diff changeset
155 profiles-oscheck:
7ed0c9db6943 8004265: Add build support for Compact Profiles
dholmes
parents: 564
diff changeset
156 ifneq ($(OPENJDK_TARGET_OS), linux)
7ed0c9db6943 8004265: Add build support for Compact Profiles
dholmes
parents: 564
diff changeset
157 @echo "Error: The Java SE 8 Compact Profiles are only implemented for Linux at this time" && exit 1
7ed0c9db6943 8004265: Add build support for Compact Profiles
dholmes
parents: 564
diff changeset
158 endif
7ed0c9db6943 8004265: Add build support for Compact Profiles
dholmes
parents: 564
diff changeset
159
492
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
160 install: images install-only
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
161 install-only: start-make
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
162 @$(call TargetEnter)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
163 @($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk install)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
164 @$(call TargetExit)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
165
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
166 docs: jdk docs-only
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
167 docs-only: start-make
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
168 @$(call TargetEnter)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
169 @($(CD) $(SRC_ROOT)/common/makefiles/javadoc && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f Javadoc.gmk docs)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
170 @$(call TargetExit)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
171
561
348a881c6da0 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 557
diff changeset
172 sign-jars: jdk sign-jars-only
348a881c6da0 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 557
diff changeset
173 sign-jars-only: start-make
348a881c6da0 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 557
diff changeset
174 @$(call TargetEnter)
348a881c6da0 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 557
diff changeset
175 @($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk sign-jars)
348a881c6da0 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 557
diff changeset
176 @$(call TargetExit)
348a881c6da0 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 557
diff changeset
177
666
52d1b385a4ed 8006828: "SKIP_BOOT_CYCLE=false" must work in new building infrastructure
erikj
parents: 651
diff changeset
178 bootcycle-images: images bootcycle-images-only
52d1b385a4ed 8006828: "SKIP_BOOT_CYCLE=false" must work in new building infrastructure
erikj
parents: 651
diff changeset
179 bootcycle-images-only: start-make
492
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
180 @$(ECHO) Boot cycle build step 2: Building a new JDK image using previously built image
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
181 @($(CD) $(SRC_ROOT)/common/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) SPEC=$(dir $(SPEC))bootcycle-spec.gmk images)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
182
650
b35d986ff276 8009162: root repo "make test" target should run against image
mduigou
parents: 643
diff changeset
183 test: images test-only
b35d986ff276 8009162: root repo "make test" target should run against image
mduigou
parents: 643
diff changeset
184 test-only: start-make
492
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
185 @$(call TargetEnter)
650
b35d986ff276 8009162: root repo "make test" target should run against image
mduigou
parents: 643
diff changeset
186 @($(CD) $(SRC_ROOT)/test && $(BUILD_LOG_WRAPPER) $(MAKE) -j1 -k MAKEFLAGS= PRODUCT_HOME=$(JDK_IMAGE_DIR) JPRT_JAVA_HOME=$(JDK_IMAGE_DIR) ALT_OUTPUTDIR=$(OUTPUT_ROOT) $(TEST)) || true
492
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
187 @$(call TargetExit)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
188
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
189 # Stores the tips for each repository. This file is be used when constructing the jdk image and can be
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
190 # used to track the exact sources used to build that image.
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
191 source-tips: $(OUTPUT_ROOT)/source_tips
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
192 $(OUTPUT_ROOT)/source_tips: FRC
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
193 @$(MKDIR) -p $(@D)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
194 @$(RM) $@
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
195 @$(if $(HG),$(call GetSourceTips),$(ECHO) "hg not installed" > $@)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
196
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
197
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
198 # Remove everything, except the output from configure.
675
fc1e08c2bb27 8010267: Add test-clean for cleaning of testoutput directory from output directory. Add depedency on test-clean to clean
mduigou
parents: 651
diff changeset
199 clean: clean-langtools clean-corba clean-jaxp clean-jaxws clean-hotspot clean-jdk clean-nashorn clean-images clean-overlay-images clean-bootcycle-build clean-docs clean-test
492
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
200 @($(CD) $(OUTPUT_ROOT) && $(RM) -r tmp source_tips build.log* build-trace*.log*)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
201 @$(ECHO) Cleaned all build artifacts.
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
202
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
203 # Remove everything, including configure configuration.
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
204 # If the output directory was created by configure and now becomes empty, remove it as well.
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
205 # FIXME: tmp should not be here, fix ResetTimers instead. And remove spec.sh!
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
206 dist-clean: clean
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
207 @($(CD) $(OUTPUT_ROOT) && $(RM) -r *spec.gmk config.* configure-arguments Makefile compare.sh spec.sh tmp)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
208 @$(if $(filter $(CONF_NAME),$(notdir $(OUTPUT_ROOT))), \
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
209 if test "x`$(LS) $(OUTPUT_ROOT)`" != x; then \
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
210 $(ECHO) "Warning: Not removing non-empty configuration directory for '$(CONF_NAME)'" ;\
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
211 else \
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
212 ($(CD) $(SRC_ROOT) && $(ECHO) "Removing configuration directory for '$(CONF_NAME)'" && $(RM) -r $(OUTPUT_ROOT)) \
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
213 fi \
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
214 )
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
215 @$(ECHO) Cleaned everything, you will have to re-run configure.
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
216
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
217 clean-langtools:
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
218 $(call CleanComponent,langtools)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
219 clean-corba:
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
220 $(call CleanComponent,corba)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
221 clean-jaxp:
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
222 $(call CleanComponent,jaxp)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
223 clean-jaxws:
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
224 $(call CleanComponent,jaxws)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
225 clean-hotspot:
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
226 $(call CleanComponent,hotspot)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
227 clean-jdk:
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
228 $(call CleanComponent,jdk)
643
5b0b6ef58dbf 8008914: Add nashorn to the tl build
jjg
parents: 625
diff changeset
229 clean-nashorn:
5b0b6ef58dbf 8008914: Add nashorn to the tl build
jjg
parents: 625
diff changeset
230 $(call CleanComponent,nashorn)
492
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
231 clean-images:
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
232 $(call CleanComponent,images)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
233 clean-overlay-images:
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
234 $(call CleanComponent,overlay-images)
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
235 clean-bootcycle-build:
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
236 $(call CleanComponent,bootcycle-build)
516
6ff2e1280dc3 8003844: build-infra: docs target isn't working properly
erikj
parents: 504
diff changeset
237 clean-docs:
6ff2e1280dc3 8003844: build-infra: docs target isn't working properly
erikj
parents: 504
diff changeset
238 $(call CleanComponent,docs)
6ff2e1280dc3 8003844: build-infra: docs target isn't working properly
erikj
parents: 504
diff changeset
239 $(call CleanComponent,docstemp)
675
fc1e08c2bb27 8010267: Add test-clean for cleaning of testoutput directory from output directory. Add depedency on test-clean to clean
mduigou
parents: 651
diff changeset
240 clean-test:
fc1e08c2bb27 8010267: Add test-clean for cleaning of testoutput directory from output directory. Add depedency on test-clean to clean
mduigou
parents: 651
diff changeset
241 $(call CleanComponent,testoutput)
492
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
242
643
5b0b6ef58dbf 8008914: Add nashorn to the tl build
jjg
parents: 625
diff changeset
243 .PHONY: langtools corba jaxp jaxws hotspot jdk nashorn images overlay-images install
5b0b6ef58dbf 8008914: Add nashorn to the tl build
jjg
parents: 625
diff changeset
244 .PHONY: langtools-only corba-only jaxp-only jaxws-only hotspot-only jdk-only nashorn-only images-only overlay-images-only install-only
492
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
245 .PHONY: all test clean dist-clean bootcycle-images start-make
643
5b0b6ef58dbf 8008914: Add nashorn to the tl build
jjg
parents: 625
diff changeset
246 .PHONY: clean-langtools clean-corba clean-jaxp clean-jaxws clean-hotspot clean-jdk clean-nashorn clean-images clean-overlay-images clean-bootcycle-build
622
7ed0c9db6943 8004265: Add build support for Compact Profiles
dholmes
parents: 564
diff changeset
247 .PHONY: profiles profiles-only profiles-oscheck
492
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
248
e64f2cb57d05 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
249 FRC: # Force target