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