annotate make/Help.gmk @ 50514:64229f3e9716

Added tag jdk-11+12 for changeset 3ab6ba9f94a9
author lana
date Thu, 03 May 2018 22:29:20 +0000
parents fbf7a51ce32f
children b70281f5146e
rev   line source
duke@0 1 #
ihse@44027 2 # Copyright (c) 2012, 2017, 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@5499 7 # published by the Free Software Foundation. Oracle designates this
duke@0 8 # particular file as subject to the "Classpath" exception as provided
ohair@5499 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@5499 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@5499 22 # or visit www.oracle.com if you need additional information or have any
ohair@5499 23 # questions.
duke@0 24 #
duke@0 25
ihse@29662 26 ###
ihse@29662 27 ### Global targets for printing help etc.
ihse@29662 28 ###
ohrstrom@8441 29
ihse@28902 30 # Helper macro to allow $(info) to properly print strings beginning with spaces.
ihse@28902 31 _:=
ihse@28902 32
ihse@21759 33 help:
ihse@21759 34 $(info )
ihse@21759 35 $(info OpenJDK Makefile help)
ihse@21759 36 $(info =====================)
ihse@21759 37 $(info )
ihse@21759 38 $(info Common make targets)
ihse@47921 39 $(info $(_) make [default] # Compile all modules and create a runnable "exploded")
ihse@47921 40 $(info $(_) # image (alias for jdk or exploded-image))
ihse@47921 41 $(info $(_) make all # Create all images: product, test, docs)
ihse@47921 42 $(info $(_) # (alias for all-images))
ihse@47921 43 $(info $(_) make images # Create complete jdk and jre images)
ihse@47921 44 $(info $(_) # (alias for product-images))
ihse@47921 45 $(info $(_) make <name>-image # Build just the image for any of: )
ihse@47921 46 $(info $(_) # jdk, jre, test, docs, symbols, profiles)
ihse@28902 47 $(info $(_) make <phase> # Build the specified phase and everything it depends on)
ihse@28902 48 $(info $(_) # (gensrc, java, copy, libs, launchers, gendata, rmic))
ihse@47921 49 $(info $(_) make *-only # Applies to most targets and disables building the)
ihse@47921 50 $(info $(_) # dependencies for that target. This is faster but may)
ihse@28902 51 $(info $(_) # result in incorrect build results!)
ihse@28902 52 $(info $(_) make docs # Create all docs)
ihse@44726 53 $(info $(_) make docs-jdk-api # Create just JDK javadocs)
ihse@29662 54 $(info $(_) make profiles # Create complete jre compact profile images)
ihse@28902 55 $(info $(_) make bootcycle-images # Build images twice, second time with newly built JDK)
ihse@28902 56 $(info $(_) make install # Install the generated images locally)
ihse@28902 57 $(info $(_) make reconfigure # Rerun configure with the same arguments as last time)
ihse@28902 58 $(info $(_) make help # Give some help on using make)
ihse@28902 59 $(info $(_) make test # Run tests, default is all tests (see TEST below))
ihse@44027 60 $(info $(_) make run-test-<test> # Run test, e.g. run-test-tier1)
ihse@44027 61 $(info $(_) make run-test TEST=<t> # Run test(s) given by TEST specification)
erikj@45266 62 $(info $(_) make exploded-run-test TEST=<t> # Run test(s) on the exploded image instead of)
erikj@45266 63 $(info $(_) # the full jdk image)
chegar@27560 64 $(info )
chegar@27560 65 $(info Targets for cleaning)
ihse@28902 66 $(info $(_) make clean # Remove all files generated by make, but not those)
ihse@28902 67 $(info $(_) # generated by configure)
ihse@28902 68 $(info $(_) make dist-clean # Remove all files, including configuration)
ihse@28902 69 $(info $(_) make clean-<outputdir> # Remove the subdir in the output dir with the name)
ihse@28902 70 $(info $(_) make clean-<phase> # Remove all build results related to a certain build)
ihse@28902 71 $(info $(_) # phase (gensrc, java, libs, launchers))
ihse@28902 72 $(info $(_) make clean-<module> # Remove all build results related to a certain module)
ihse@28902 73 $(info $(_) make clean-<module>-<phase> # Remove all build results related to a certain)
ihse@28902 74 $(info $(_) # module and phase)
ihse@21759 75 $(info )
erikj@42510 76 $(info Targets for Hotspot)
erikj@42510 77 $(info $(_) make hotspot # Build all of hotspot)
erikj@42510 78 $(info $(_) make hotspot-<variant> # Build just the specified jvm variant)
erikj@42510 79 $(info $(_) make hotspot-gensrc # Only build the gensrc part of hotspot)
ihse@47921 80 $(info $(_) make hotspot-<variant>-<phase> # Build the specified phase for the variant)
erikj@42510 81 $(info )
chegar@25854 82 $(info Targets for specific modules)
ihse@29662 83 $(info $(_) make <module> # Build <module> and everything it depends on)
ihse@28902 84 $(info $(_) make <module>-<phase> # Compile the specified phase for the specified module)
ihse@28902 85 $(info $(_) # and everything it depends on)
ihse@28902 86 $(info $(_) # (gensrc, java, copy, libs, launchers, gendata, rmic))
ihse@21759 87 $(info )
ihse@28902 88 $(info Make control variables)
ihse@28902 89 $(info $(_) CONF= # Build all configurations (note, assignment is empty))
ihse@28902 90 $(info $(_) CONF=<substring> # Build the configuration(s) with a name matching)
ihse@28902 91 $(info $(_) # <substring>)
erikj@34491 92 $(info $(_) CONF_NAME=<string> # Build the configuration with exactly the <string>)
ihse@28902 93 $(info $(_) SPEC=<spec file> # Build the configuration given by the spec file)
ihse@28902 94 $(info $(_) LOG=<loglevel> # Change the log level from warn to <loglevel>)
ihse@28902 95 $(info $(_) # Available log levels are:)
ihse@28902 96 $(info $(_) # 'warn' (default), 'info', 'debug' and 'trace')
ihse@28902 97 $(info $(_) # To see executed command lines, use LOG=debug)
ihse@28902 98 $(info $(_) JOBS=<n> # Run <n> parallel make jobs)
ihse@28902 99 $(info $(_) # Note that -jN does not work as expected!)
ehelin@34594 100 $(info $(_) TEST_JOBS=<n> # Run <n> parallel test jobs)
ihse@29662 101 $(info $(_) CONF_CHECK=<method> # What to do if spec file is out of date)
ihse@29662 102 $(info $(_) # method is 'auto', 'ignore' or 'fail' (default))
ihse@28902 103 $(info $(_) make test TEST=<test> # Only run the given test or tests, e.g.)
ihse@28902 104 $(info $(_) # make test TEST="jdk_lang jdk_net")
ihse@44027 105 $(info $(_) JTREG="OPT1=x;OPT2=y" # Control the JTREG test harness for run-test)
ihse@44027 106 $(info $(_) GTEST="OPT1=x;OPT2=y" # Control the GTEST test harness for run-test)
ihse@21759 107 $(info )
ihse@29662 108 $(if $(all_confs), $(info Available configurations in $(build_dir):) $(foreach var,$(all_confs),$(info * $(var))),\
ihse@29788 109 $(info No configurations were found in $(build_dir).) $(info Run 'bash configure' to create a configuration.))
ihse@29662 110 # We need a dummy rule otherwise make will complain
ihse@29662 111 @true
ohair@874 112
ihse@29662 113 print-configurations:
ihse@29662 114 $(foreach var, $(all_confs), $(info $(var)))
ihse@29662 115 # We need a dummy rule otherwise make will complain
ihse@29662 116 @true
ihse@29662 117
ihse@48294 118 # This is not really a "help" target, but it is a global target, and those are
ihse@48294 119 # all contained in this file.
ihse@48294 120 run-test-prebuilt:
ihse@48294 121 @( cd $(topdir) && \
ihse@48294 122 $(MAKE) --no-print-directory -r -R -I make/common/ -f make/RunTestsPrebuilt.gmk \
ihse@48294 123 run-test-prebuilt TEST="$(TEST)" )
ihse@48294 124
ihse@48294 125 ALL_GLOBAL_TARGETS := help print-configurations run-test-prebuilt
ihse@29662 126
ihse@29662 127 .PHONY: $(ALL_GLOBAL_TARGETS)