sanity-rules.gmk revision 0
0N/A# Copyright 2001-2007 Sun Microsystems, Inc. All Rights Reserved. 0N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A# This code is free software; you can redistribute it and/or modify it 0N/A# under the terms of the GNU General Public License version 2 only, as 0N/A# published by the Free Software Foundation. Sun designates this 0N/A# particular file as subject to the "Classpath" exception as provided 0N/A# by Sun in the LICENSE file that accompanied this code. 0N/A# This code is distributed in the hope that it will be useful, but WITHOUT 0N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A# version 2 for more details (a copy is included in the LICENSE file that 0N/A# accompanied this code). 0N/A# You should have received a copy of the GNU General Public License version 0N/A# 2 along with this work; if not, write to the Free Software Foundation, 0N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 0N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 0N/A# CA 95054 USA or visit www.sun.com if you need additional information or 0N/A# have any questions. 0N/A################################################################ 0N/A################################################################ 0N/A# Only need these sanity rules when not doing a debug build 0N/A# this should be the last rule in any target's sanity rule. 0N/A $(ECHO) "INSANE mode requested. \n" \
0N/A "Sanity will not force a build termination, even with errors.\n" \
0N/A $(ECHO) "Exiting because of the above error(s). \n" \
0N/A $(ECHO) "PEDANTIC mode requested. \n" \
0N/A "Exiting because of the above warning(s). \n" \
0N/A @
$(ECHO) "WARNING: You are building in 'INSANE' mode. You \n" \
0N/A " should not use this mode, and in fact, \n" \
0N/A " it may be removed at any time. If you \n" \
0N/A " have build problems as a result of using \n" \
0N/A " INSANE mode, then you should not expect \n" \
0N/A " assistance from anyone with the problems \n" \
0N/A " or consequences you experience. \n" \
0N/A# Get list of environment variables set that we do not want set 0N/A# Error message for environment variable set that should not be 0N/A @
$(ECHO) "ERROR: Your build environment has the variable\n" \
0N/A " $* defined. Please unset it and restart your build. \n" \
0N/A# Check the environment variables 0N/A @
$(ECHO) "WARNING: You are not building the LANGTOOLS sources.\n" \
0N/A " Lang tools (javac) will be obtained from \n" \
0N/A " the location set in ALT_JDK_IMPORT_PATH. \n" \
0N/A @
$(ECHO) "WARNING: You are not building the JAXP sources.\n" \
0N/A " The jaxp files will be obtained from \n" \
0N/A " the location set in ALT_JDK_IMPORT_PATH. \n" \
0N/A @
$(ECHO) "WARNING: You are not building the JAXWS sources.\n" \
0N/A " The jaxws files will be obtained from \n" \
0N/A " the location set in ALT_JDK_IMPORT_PATH. \n" \
0N/A @
$(ECHO) "WARNING: You are not building the CORBA sources.\n" \
0N/A " The corba files will be obtained from \n" \
0N/A " the location set in ALT_JDK_IMPORT_PATH. \n" \
0N/A @
$(ECHO) "WARNING: You are not building the HOTSPOT sources.\n" \
0N/A " Hotspot libs will be obtained from \n" \
0N/A " the location set in ALT_HOTSPOT_IMPORT_PATH. \n" \
0N/A @
$(ECHO) "WARNING: You are not building the JDK sources.\n" \
0N/A " This will result in a development-only\n" \
0N/A " build of the JDK , lacking the jdk binaries.\n" \
0N/A @
$(ECHO) "WARNING: You are not building the DEPLOY sources.\n" \
0N/A " This will result in a development-only\n" \
0N/A " build of the JDK, lacking the plugin and javaws binaries.\n" \
0N/A @
$(ECHO) "WARNING: You are not building the INSTALL sources.\n" \
0N/A " This will result in a development-only\n" \
0N/A " build of the JDK, lacking the installation bundles\n" \
0N/A @
$(ECHO) "WARNING: You are not building the SPONSORS sources.\n" \
0N/A @
$(ECHO) "WARNING: Your build environment has the variable NO_DOCS\n" \
0N/A " defined. This will result in a development-only\n" \
0N/A " build of the JDK, lacking the documentation.\n" \
0N/A @
$(ECHO) "WARNING: Your build environment has the variable NO_IMAGES\n" \
0N/A " defined. This will result in a development-only\n" \
0N/A " build of the JDK, lacking the install images\n" \
0N/A @
$(ECHO) "WARNING: Your build environment has the variable DEV_ONLY\n" \
0N/A " defined. This will result in a development-only\n" \
0N/A " build of the JDK, lacking the documentation\n" \
0N/A " build and installation bundles.\n" \
0N/A###################################################### 0N/A# if specified, ALT_BOOTDIR must point to non-relative path if set 0N/A###################################################### 0N/A $(ECHO) "ERROR: ALT_BOOTDIR must be an Absolute Path Name, \n" \
0N/A " not a Relative Path Name. \n" \
0N/A " The current value of ALT_BOOTDIR is \n" \
0N/A " Please fix this and continue your build. \n" \
0N/A###################################################### 0N/A# BOOTDIR must point to a valid JDK. 0N/A###################################################### 0N/A $(ECHO) "ERROR: Your BOOTDIR environment variable does not point \n" \
0N/A " to a valid JDK for bootstrapping this build. \n" \
0N/A " Please update your ALT_BOOTDIR setting and start your build again. \n" \
0N/A $(ECHO) "ERROR: BOOTDIR does not point to a valid Java 2 SDK \n" \
0N/A " Check that you have access to \n" \
0N/A " and/or check your value of ALT_BOOTDIR. \n" \
0N/A###################################################### 0N/A# dump out the variable settings... 0N/A######################################################