Mon, 18 Jan 2016 10:49:15 -0800
Added tag jdk8u75-b04 for changeset 6580edbc4511
duke@1 | 1 | # |
ihse@439 | 2 | # Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. |
duke@1 | 3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
duke@1 | 4 | # |
duke@1 | 5 | # This code is free software; you can redistribute it and/or modify it |
duke@1 | 6 | # under the terms of the GNU General Public License version 2 only, as |
ohair@116 | 7 | # published by the Free Software Foundation. Oracle designates this |
duke@1 | 8 | # particular file as subject to the "Classpath" exception as provided |
ohair@116 | 9 | # by Oracle in the LICENSE file that accompanied this code. |
duke@1 | 10 | # |
duke@1 | 11 | # This code is distributed in the hope that it will be useful, but WITHOUT |
duke@1 | 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
duke@1 | 13 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
duke@1 | 14 | # version 2 for more details (a copy is included in the LICENSE file that |
duke@1 | 15 | # accompanied this code). |
duke@1 | 16 | # |
duke@1 | 17 | # You should have received a copy of the GNU General Public License version |
duke@1 | 18 | # 2 along with this work; if not, write to the Free Software Foundation, |
duke@1 | 19 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
duke@1 | 20 | # |
ohair@116 | 21 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@116 | 22 | # or visit www.oracle.com if you need additional information or have any |
ohair@116 | 23 | # questions. |
duke@1 | 24 | # |
duke@1 | 25 | |
ihse@439 | 26 | # Locate this Makefile |
ihse@439 | 27 | ifeq ($(filter /%, $(lastword $(MAKEFILE_LIST))), ) |
ihse@439 | 28 | makefile_path := $(CURDIR)/$(lastword $(MAKEFILE_LIST)) |
ihse@439 | 29 | else |
ihse@439 | 30 | makefile_path := $(lastword $(MAKEFILE_LIST)) |
ihse@439 | 31 | endif |
ihse@439 | 32 | repo_dir := $(patsubst %/make/Makefile, %, $(makefile_path)) |
duke@1 | 33 | |
ihse@439 | 34 | # What is the name of this subsystem (langtools, corba, etc)? |
ihse@439 | 35 | subsystem_name := $(notdir $(repo_dir)) |
duke@1 | 36 | |
ihse@439 | 37 | # Try to locate top-level makefile |
ihse@439 | 38 | top_level_makefile := $(repo_dir)/../Makefile |
ihse@439 | 39 | ifneq ($(wildcard $(top_level_makefile)), ) |
ihse@439 | 40 | $(info Will run $(subsystem_name) target on top-level Makefile) |
ihse@439 | 41 | $(info WARNING: This is a non-recommended way of building!) |
ihse@439 | 42 | $(info ===================================================) |
ihse@439 | 43 | else |
ihse@439 | 44 | $(info Cannot locate top-level Makefile. Is this repo not checked out as part of a complete forest?) |
ihse@439 | 45 | $(error Build from top-level Makefile instead) |
duke@1 | 46 | endif |
duke@1 | 47 | |
ihse@439 | 48 | all: |
ihse@439 | 49 | @$(MAKE) -f $(top_level_makefile) $(subsystem_name) |