make/install-rules.gmk

Tue, 22 Sep 2009 14:06:04 -0700

author
xdono
date
Tue, 22 Sep 2009 14:06:04 -0700
changeset 131
d70b157f6407
parent 128
e76b72562a98
child 182
412712f77af6
permissions
-rw-r--r--

6884624: Update copyright year
Summary: Update copyright for files that have been modified in 2009 through Septermber
Reviewed-by: tbell, ohair

     1 #
     2 # Copyright 2002-2009 Sun Microsystems, Inc.  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.  Sun designates this
     8 # particular file as subject to the "Classpath" exception as provided
     9 # by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    22 # CA 95054 USA or visit www.sun.com if you need additional information or
    23 # have any questions.
    24 #
    26 ################################################################
    27 # INSTALL  TARGETS
    28 ################################################################
    30 install:  install-build
    32 # The generated java files are generated as a set, so instead of
    33 # setting the INSTALL variable to that list of files, set it to
    34 # the .PHONY target that generates the set of files.
    35 INSTALL = install
    37 # put the generated patch in their own place in OUTPUTDIR
    38 INSTALL_OUTPUTDIR = $(ABS_OUTPUTDIR)
    40 INSTALL_DEBUG_NAME=fastdebug
    42 INSTALL_BUILD_TARGETS = sanity all
    43 INSTALL_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \
    44 			ALT_OUTPUTDIR=$(INSTALL_OUTPUTDIR) \
    45 			ALT_RTPATCH_DIR=$(ALT_RTPATCH_DIR) \
    46 			ALT_BASE_IMAGE_ZIP=$(ALT_BASE_IMAGE_ZIP) \
    47 			ALT_BASE_IMAGE_DIR=$(ALT_BASE_IMAGE_DIR) \
    48 			ALT_NEW_IMAGE_DIR=$(ALT_NEW_IMAGE_DIR) \
    49 			ALT_BUNDLE_DATE=$(BUNDLE_DATE) \
    50 			INSTALL_DEBUG_NAME=$(INSTALL_DEBUG_NAME)
    52 ifeq ($(BUILD_LANGTOOLS), true)
    53   INSTALL_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST)
    54 endif
    56 install: install-build
    58 install-build:
    59 ifeq ($(BUILD_INSTALL), true)
    60 	@$(call MakeStart, install, $(INSTALL_BUILD_TARGETS))
    61 	($(CD) $(INSTALL_TOPDIR)/make && \
    62 	  $(MAKE) $(INSTALL_BUILD_TARGETS) $(INSTALL_BUILD_ARGUMENTS))
    63 	@$(call MakeFinish, install, $(INSTALL_BUILD_TARGETS))
    64 endif
    66 update-patcher:
    67 ifeq ($(BUILD_INSTALL), true)
    68 	if [ -r $(INSTALL_TOPDIR)/make/update/Makefile ]; then \
    69 	  $(call MakeStart, install update, all); \
    70 	  ( $(CD) $(INSTALL_TOPDIR)/make/update && \
    71 	    $(MAKE) all $(INSTALL_BUILD_ARGUMENTS) ); \
    72 	  $(call MakeFinish, install, all); \
    73 	fi
    74 endif
    76 update-patchgen:
    77 ifeq ($(BUILD_INSTALL), true)
    78 	if [ -r $(INSTALL_TOPDIR)/make/update/Makefile ]; then \
    79 	  $(call MakeStart, install update, patchgen); \
    80 	  ( $(CD) $(INSTALL_TOPDIR)/make/update && \
    81 	    $(MAKE) patchgen $(INSTALL_BUILD_ARGUMENTS) ); \
    82 	  $(call MakeFinish, install, patchgen); \
    83 	fi
    84 endif
    86 installer:
    87 ifeq ($(BUILD_INSTALL), true)
    88 	if [ -r $(INSTALL_TOPDIR)/make/installer/Makefile ]; then \
    89 	  $(call MakeStart, install installer, all); \
    90 	  ( $(CD) $(INSTALL_TOPDIR)/make/installer && \
    91 	    $(MAKE) all $(INSTALL_BUILD_ARGUMENTS) ); \
    92 	  $(call MakeFinish, install, all); \
    93 	fi
    94 endif
    96 install-clobber:
    97 ifeq ($(BUILD_INSTALL), true)
    98 	@$(call MakeStart, install, clobber)
    99 	($(CD) $(INSTALL_TOPDIR)/make && \
   100 	  $(MAKE) clobber $(INSTALL_BUILD_ARGUMENTS))
   101 	@$(call MakeFinish, install, clobber)
   102 endif
   104 install-sanity:: 
   105 ifeq ($(BUILD_INSTALL), true)
   106 	($(CD) $(INSTALL_TOPDIR)/make && \
   107 	  $(MAKE) sanity $(INSTALL_BUILD_ARGUMENTS))
   108 endif
   110 ######################################
   111 # Rules for making the install
   112 ######################################
   114 .PHONY: install install-build install-clobber install-sanity \
   115 	update-installer update-patchgen installer

mercurial