annotate make/Makefile @ 3278:8a30511b2ea4

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