annotate make/common/Sanity.gmk @ 3686:6aeed99af874

7025631: Remove the modules build support from jdk 7 Reviewed-by: alanb, ohair
author mchung
date Wed, 09 Mar 2011 23:11:07 -0800
parents a06412e13bf7
children 272483f6650b
rev   line source
duke@0 1 #
ohair@3261 2 # Copyright (c) 2001, 2010, 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@2362 7 # published by the Free Software Foundation. Oracle designates this
duke@0 8 # particular file as subject to the "Classpath" exception as provided
ohair@2362 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@2362 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@2362 22 # or visit www.oracle.com if you need additional information or have any
ohair@2362 23 # questions.
duke@0 24 #
duke@0 25
duke@0 26 # Settings and rules to validate the JDK build environment.
duke@0 27
duke@0 28 .PHONY: \
duke@0 29 pre-sanity \
duke@0 30 sanity \
duke@0 31 sanity-base \
duke@0 32 sanity-docs \
duke@0 33 sanity-images \
duke@0 34 post-sanity-all \
duke@0 35 post-sanity-docs \
duke@0 36 post-sanity-images \
duke@0 37 sanity-all
duke@0 38
duke@0 39 # Bring in common sanity check rules
duke@0 40 include $(JDK_MAKE_SHARED_DIR)/Sanity.gmk
duke@0 41
duke@0 42 # EXTERNALSANITYCONTROL means that this workspace build is being controlled by
duke@0 43 # the control workspace, and that workspace is managing what is done to the sanity
duke@0 44 # check files, and this sanity check run is only appending to those files.
duke@0 45
duke@0 46 pre-sanity: $(SANITY_FILES)
duke@0 47 ifndef EXTERNALSANITYCONTROL
duke@0 48 @$(RM) $(SANITY_FILES)
duke@0 49 endif
duke@0 50
duke@0 51 sanity-base: pre-sanity \
duke@0 52 sane-settings \
duke@0 53 sane-insane \
duke@0 54 sane-make \
duke@0 55 sane-build_number \
duke@0 56 sane-os_version \
duke@0 57 sane-makeflags \
duke@0 58 sane-alt_outputdir \
duke@0 59 sane-outputdir \
duke@0 60 sane-devtools_path \
duke@0 61 sane-compiler_path \
duke@0 62 sane-unixcommand_path \
duke@0 63 sane-usrbin_path \
duke@0 64 sane-math_iso \
duke@0 65 sane-libCrun \
duke@0 66 sane-unixccs_path \
duke@0 67 sane-odbcdir \
duke@0 68 sane-msdevtools_path \
duke@0 69 sane-dxsdk \
duke@0 70 sane-compiler \
duke@0 71 sane-cacerts \
duke@0 72 sane-ant_version \
duke@0 73 sane-zip_version \
mchung@3686 74 sane-msvcrt_path
duke@0 75
duke@0 76 # The rules sanity-* have a one-to-one correspondence with the major targets
duke@0 77 # Each sanity-* rule should have no body to ensure that the post-sanity-* is the
duke@0 78 # last rule executed. The pre-sanity rule should be the first dependency. This design
duke@0 79 # expects the execution of pre-sanity only once per gnumake command invocation,
duke@0 80 # thus, info written to ERROR_FILE and/or WARNING_FILE will not be removed by subsequent
duke@0 81 # targets in the same 'gnumake' command line.
duke@0 82
duke@0 83 sanity-all:: sanity-base \
duke@0 84 sane-classpath \
duke@0 85 sane-java_home \
duke@0 86 sane-fonts \
duke@0 87 sane-variant \
duke@0 88 sane-ld_library_path \
duke@0 89 sane-ld_library_path_64 \
duke@0 90 sane-ld_options \
duke@0 91 sane-ld_run_path \
duke@0 92 sane-alt_bootdir \
duke@0 93 sane-bootdir \
anthony@1220 94 sane-local-bootdir \
peterz@1630 95 sane-alsa-headers
duke@0 96
duke@0 97 ifdef OPENJDK
duke@0 98 sanity-all:: sane-freetype
duke@0 99 endif
duke@0 100
duke@0 101
duke@0 102 # Always check cups header paths on solaris & linux
duke@0 103 ifneq ($(PLATFORM), windows)
duke@0 104 sanity-all:: \
duke@0 105 sane-cups
duke@0 106 endif
duke@0 107
duke@0 108 # Always check hotspot binary paths even if we are building them from scratch
duke@0 109 HOTSPOT_IMPORT_CHECK=true
duke@0 110 ifeq ($(HOTSPOT_IMPORT_CHECK),true)
duke@0 111 sanity-all:: \
duke@0 112 sane-hotspot_binaries \
duke@0 113 sane-hotspot_import
duke@0 114 endif
duke@0 115
duke@0 116 sanity-docs: sanity-base sane-docs_import
duke@0 117
duke@0 118 sanity-images:: sanity-base
duke@0 119
duke@0 120 sanity:: sanity-all post-sanity
duke@0 121
duke@0 122 # this should be the last rule in any target's sanity rule.
duke@0 123 post-sanity post-sanity-all post-sanity-docs post-sanity-images: sane-lastrule