comparison make/Main.gmk @ 919:a667caba1e84

8027566: Remove the old build system Reviewed-by: erikj, tbell
author ihse
date Thu, 14 Nov 2013 10:53:23 +0100
parents common/makefiles/Main.gmk@d832f6171acd
children c3c75eda6606
comparison
equal deleted inserted replaced
42:bbffffa7678a 0:fed52ced441b
27 27
28 # Now load the spec 28 # Now load the spec
29 include $(SPEC) 29 include $(SPEC)
30 30
31 # Load the vital tools for all the makefiles. 31 # Load the vital tools for all the makefiles.
32 include $(SRC_ROOT)/common/makefiles/MakeBase.gmk 32 include $(SRC_ROOT)/make/common/MakeBase.gmk
33 33
34 # Include the corresponding custom file, if present. 34 # Include the corresponding custom file, if present.
35 -include $(CUSTOM_MAKE_DIR)/Main.gmk 35 -include $(CUSTOM_MAKE_DIR)/Main.gmk
36 36
37 ### Clean up from previous run 37 ### Clean up from previous run
79 @$(call AtMakeStart) 79 @$(call AtMakeStart)
80 80
81 langtools: langtools-only 81 langtools: langtools-only
82 langtools-only: start-make 82 langtools-only: start-make
83 @$(call TargetEnter) 83 @$(call TargetEnter)
84 @($(CD) $(LANGTOOLS_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildLangtools.gmk) 84 @($(CD) $(LANGTOOLS_TOPDIR)/make && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildLangtools.gmk)
85 @$(call TargetExit) 85 @$(call TargetExit)
86 86
87 corba: langtools corba-only 87 corba: langtools corba-only
88 corba-only: start-make 88 corba-only: start-make
89 @$(call TargetEnter) 89 @$(call TargetEnter)
90 @($(CD) $(CORBA_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildCorba.gmk) 90 @($(CD) $(CORBA_TOPDIR)/make && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildCorba.gmk)
91 @$(call TargetExit) 91 @$(call TargetExit)
92 92
93 jaxp: langtools jaxp-only 93 jaxp: langtools jaxp-only
94 jaxp-only: start-make 94 jaxp-only: start-make
95 @$(call TargetEnter) 95 @$(call TargetEnter)
96 @($(CD) $(JAXP_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJaxp.gmk) 96 @($(CD) $(JAXP_TOPDIR)/make && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJaxp.gmk)
97 @$(call TargetExit) 97 @$(call TargetExit)
98 98
99 jaxws: langtools jaxp jaxws-only 99 jaxws: langtools jaxp jaxws-only
100 jaxws-only: start-make 100 jaxws-only: start-make
101 @$(call TargetEnter) 101 @$(call TargetEnter)
102 @($(CD) $(JAXWS_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJaxws.gmk) 102 @($(CD) $(JAXWS_TOPDIR)/make && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJaxws.gmk)
103 @$(call TargetExit) 103 @$(call TargetExit)
104 104
105 ifeq ($(BUILD_HOTSPOT),true) 105 ifeq ($(BUILD_HOTSPOT),true)
106 hotspot: hotspot-only 106 hotspot: hotspot-only
107 hotspot-only: start-make 107 hotspot-only: start-make
108 @$(call TargetEnter) 108 @$(call TargetEnter)
109 @($(CD) $(SRC_ROOT)/common/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f HotspotWrapper.gmk) 109 @($(CD) $(SRC_ROOT)/make && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f HotspotWrapper.gmk)
110 @$(call TargetExit) 110 @$(call TargetExit)
111 endif 111 endif
112 112
113 jdk: langtools hotspot corba jaxp jaxws jdk-only 113 jdk: langtools hotspot corba jaxp jaxws jdk-only
114 jdk-only: start-make 114 jdk-only: start-make
115 @$(call TargetEnter) 115 @$(call TargetEnter)
116 @($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk $(JDK_TARGET)) 116 @($(CD) $(JDK_TOPDIR)/make && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk $(JDK_TARGET))
117 @$(call TargetExit) 117 @$(call TargetExit)
118 118
119 nashorn: jdk nashorn-only 119 nashorn: jdk nashorn-only
120 nashorn-only: start-make 120 nashorn-only: start-make
121 @$(call TargetEnter) 121 @$(call TargetEnter)
122 @($(CD) $(NASHORN_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildNashorn.gmk) 122 @($(CD) $(NASHORN_TOPDIR)/make && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildNashorn.gmk)
123 @$(call TargetExit) 123 @$(call TargetExit)
124 124
125 demos: jdk demos-only 125 demos: jdk demos-only
126 demos-only: start-make 126 demos-only: start-make
127 @$(call TargetEnter) 127 @$(call TargetEnter)
128 @($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk demos) 128 @($(CD) $(JDK_TOPDIR)/make && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk demos)
129 @$(call TargetExit) 129 @$(call TargetExit)
130 130
131 # Note: This double-colon rule is intentional, to support 131 # Note: This double-colon rule is intentional, to support
132 # custom make file integration. 132 # custom make file integration.
133 images:: source-tips demos nashorn images-only 133 images:: source-tips demos nashorn images-only
134 images-only: start-make 134 images-only: start-make
135 @$(call TargetEnter) 135 @$(call TargetEnter)
136 @($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk images) 136 @($(CD) $(JDK_TOPDIR)/make && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk images)
137 @$(call TargetExit) 137 @$(call TargetExit)
138 138
139 overlay-images: source-tips demos overlay-images-only 139 overlay-images: source-tips demos overlay-images-only
140 overlay-images-only: start-make 140 overlay-images-only: start-make
141 @$(call TargetEnter) 141 @$(call TargetEnter)
142 @($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk overlay-images) 142 @($(CD) $(JDK_TOPDIR)/make && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk overlay-images)
143 @$(call TargetExit) 143 @$(call TargetExit)
144 144
145 profiles: profiles-oscheck source-tips jdk hotspot profiles-only 145 profiles: profiles-oscheck source-tips jdk hotspot profiles-only
146 profiles-only: start-make 146 profiles-only: start-make
147 @$(call TargetEnter) 147 @$(call TargetEnter)
148 @($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk profiles) 148 @($(CD) $(JDK_TOPDIR)/make && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk profiles)
149 @$(call TargetExit) 149 @$(call TargetExit)
150 150
151 profiles-oscheck: 151 profiles-oscheck:
152 ifneq ($(OPENJDK_TARGET_OS), linux) 152 ifneq ($(OPENJDK_TARGET_OS), linux)
153 @echo "Error: The Java SE 8 Compact Profiles are only implemented for Linux at this time" && exit 1 153 @echo "Error: The Java SE 8 Compact Profiles are only implemented for Linux at this time" && exit 1
154 endif 154 endif
155 155
156 install: images install-only 156 install: images install-only
157 install-only: start-make 157 install-only: start-make
158 @$(call TargetEnter) 158 @$(call TargetEnter)
159 @($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk install) 159 @($(CD) $(JDK_TOPDIR)/make && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk install)
160 @$(call TargetExit) 160 @$(call TargetExit)
161 161
162 docs: jdk docs-only 162 docs: jdk docs-only
163 docs-only: start-make 163 docs-only: start-make
164 @$(call TargetEnter) 164 @$(call TargetEnter)
165 @($(CD) $(SRC_ROOT)/common/makefiles/javadoc && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f Javadoc.gmk docs) 165 @($(CD) $(SRC_ROOT)/make && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f Javadoc.gmk docs)
166 @$(call TargetExit) 166 @$(call TargetExit)
167 167
168 sign-jars: jdk sign-jars-only 168 sign-jars: jdk sign-jars-only
169 sign-jars-only: start-make 169 sign-jars-only: start-make
170 @$(call TargetEnter) 170 @$(call TargetEnter)
171 @($(CD) $(JDK_TOPDIR)/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk sign-jars) 171 @($(CD) $(JDK_TOPDIR)/make && $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) -f BuildJdk.gmk sign-jars)
172 @$(call TargetExit) 172 @$(call TargetExit)
173 173
174 bootcycle-images: images bootcycle-images-only 174 bootcycle-images: images bootcycle-images-only
175 bootcycle-images-only: start-make 175 bootcycle-images-only: start-make
176 @$(ECHO) Boot cycle build step 2: Building a new JDK image using previously built image 176 @$(ECHO) Boot cycle build step 2: Building a new JDK image using previously built image
177 @($(CD) $(SRC_ROOT)/common/makefiles && $(BUILD_LOG_WRAPPER) $(MAKE) SPEC=$(dir $(SPEC))bootcycle-spec.gmk images) 177 @($(CD) $(SRC_ROOT) && $(BUILD_LOG_WRAPPER) $(MAKE) SPEC=$(dir $(SPEC))bootcycle-spec.gmk images)
178 178
179 test: images test-only 179 test: images test-only
180 test-only: start-make 180 test-only: start-make
181 @$(call TargetEnter) 181 @$(call TargetEnter)
182 @($(CD) $(SRC_ROOT)/test && $(BUILD_LOG_WRAPPER) $(MAKE) -j1 -k MAKEFLAGS= JT_HOME=$(JT_HOME) PRODUCT_HOME=$(JDK_IMAGE_DIR) ALT_OUTPUTDIR=$(OUTPUT_ROOT) CONCURRENCY=$(JOBS) $(TEST)) || true 182 @($(CD) $(SRC_ROOT)/test && $(BUILD_LOG_WRAPPER) $(MAKE) -j1 -k MAKEFLAGS= JT_HOME=$(JT_HOME) PRODUCT_HOME=$(JDK_IMAGE_DIR) ALT_OUTPUTDIR=$(OUTPUT_ROOT) CONCURRENCY=$(JOBS) $(TEST)) || true