author | acorn |
Mon, 14 Jul 2014 13:15:06 +0400 | |
changeset 25507 | 37c0bd9e16a0 |
parent 22448 | a85fbad9d687 |
permissions | -rw-r--r-- |
10 | 1 |
# |
22448
a85fbad9d687
8029230: Update copyright year to match last edit in jdk8 langtools repository for 2013
ksrini
parents:
21887
diff
changeset
|
2 |
# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. |
10 | 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 |
|
5520 | 7 |
# published by the Free Software Foundation. Oracle designates this |
10 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5520 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
10 | 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 |
# |
|
5520 | 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 |
|
23 |
# questions. |
|
10 | 24 |
# |
25 |
||
21887 | 26 |
# Locate this Makefile |
27 |
ifeq ($(filter /%, $(lastword $(MAKEFILE_LIST))), ) |
|
28 |
makefile_path := $(CURDIR)/$(lastword $(MAKEFILE_LIST)) |
|
10 | 29 |
else |
21887 | 30 |
makefile_path := $(lastword $(MAKEFILE_LIST)) |
10 | 31 |
endif |
21887 | 32 |
repo_dir := $(patsubst %/make/Makefile, %, $(makefile_path)) |
10 | 33 |
|
21887 | 34 |
# What is the name of this subsystem (langtools, corba, etc)? |
35 |
subsystem_name := $(notdir $(repo_dir)) |
|
10 | 36 |
|
21887 | 37 |
# Try to locate top-level makefile |
38 |
top_level_makefile := $(repo_dir)/../Makefile |
|
39 |
ifneq ($(wildcard $(top_level_makefile)), ) |
|
40 |
$(info Will run $(subsystem_name) target on top-level Makefile) |
|
41 |
$(info WARNING: This is a non-recommended way of building!) |
|
42 |
$(info ===================================================) |
|
1650
980a667baa29
6778493: Fix (langtools) ant build to honor fcs MILESTONE setting
jjg
parents:
10
diff
changeset
|
43 |
else |
21887 | 44 |
$(info Cannot locate top-level Makefile. Is this repo not checked out as part of a complete forest?) |
45 |
$(error Build from top-level Makefile instead) |
|
2848
98fc22703cbc
6829575: 100028: Debug information is incomplete or missing
aph
parents:
1650
diff
changeset
|
46 |
endif |
98fc22703cbc
6829575: 100028: Debug information is incomplete or missing
aph
parents:
1650
diff
changeset
|
47 |
|
21887 | 48 |
all: |
49 |
@$(MAKE) -f $(top_level_makefile) $(subsystem_name) |