1 #
2 # Copyright (c) 2012, 2017, Oracle and/or its affiliates. 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. 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
208
209 .PHONY: $(ALL_MAIN_TARGETS) $(ALL_INIT_TARGETS)
210
211 endif # $(ONLY_GLOBAL_TARGETS)!=true
212
213 else # HAS_SPEC=true
214
215 ##############################################################################
216 # Now we have a spec. This part provides the "main" target that acts as a
217 # trampoline to call the Main.gmk with the value of $(MAKE) found in the spec
218 # file.
219 ##############################################################################
220
221 include $(SPEC)
222
223 # Our helper functions.
224 include $(TOPDIR)/make/InitSupport.gmk
225
226 # Parse COMPARE_BUILD (for makefile development)
227 $(eval $(call ParseCompareBuild))
228
229 ifeq ($(LOG_NOFILE), true)
230 # Disable build log if LOG=[level,]nofile was given
231 override BUILD_LOG_PIPE :=
232 endif
233
234 ifeq ($(OUTPUT_SYNC_SUPPORTED), true)
235 OUTPUT_SYNC_FLAG := -O$(OUTPUT_SYNC)
236 endif
237
238 ##############################################################################
239 # Init targets
240 ##############################################################################
241
242 print-modules:
243 ( cd $(TOPDIR) && \
244 $(MAKE) $(MAKE_ARGS) -j 1 -f make/Main.gmk $(USER_MAKE_VARS) \
245 NO_RECIPES=true print-modules )
246
247 print-targets:
|
1 #
2 # Copyright (c) 2012, 2018, Oracle and/or its affiliates. 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. 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
208
209 .PHONY: $(ALL_MAIN_TARGETS) $(ALL_INIT_TARGETS)
210
211 endif # $(ONLY_GLOBAL_TARGETS)!=true
212
213 else # HAS_SPEC=true
214
215 ##############################################################################
216 # Now we have a spec. This part provides the "main" target that acts as a
217 # trampoline to call the Main.gmk with the value of $(MAKE) found in the spec
218 # file.
219 ##############################################################################
220
221 include $(SPEC)
222
223 # Our helper functions.
224 include $(TOPDIR)/make/InitSupport.gmk
225
226 # Parse COMPARE_BUILD (for makefile development)
227 $(eval $(call ParseCompareBuild))
228
229 # If no LOG= were given on command line, but we have a non-standard default
230 # value, use that instead and re-parse log level.
231 ifeq ($(LOG), )
232 ifneq ($(DEFAULT_LOG), )
233 override LOG := $(DEFAULT_LOG)
234 $(eval $(call ParseLogLevel))
235 endif
236 endif
237
238 ifeq ($(LOG_NOFILE), true)
239 # Disable build log if LOG=[level,]nofile was given
240 override BUILD_LOG_PIPE :=
241 endif
242
243 ifeq ($(OUTPUT_SYNC_SUPPORTED), true)
244 OUTPUT_SYNC_FLAG := -O$(OUTPUT_SYNC)
245 endif
246
247 ##############################################################################
248 # Init targets
249 ##############################################################################
250
251 print-modules:
252 ( cd $(TOPDIR) && \
253 $(MAKE) $(MAKE_ARGS) -j 1 -f make/Main.gmk $(USER_MAKE_VARS) \
254 NO_RECIPES=true print-modules )
255
256 print-targets:
|