annotate make/Help.gmk @ 2573:0bf994fa4ee5

8176785: Add build support to generate PNG file from .dot file Reviewed-by: erikj, mchung
author ihse
date Wed, 19 Apr 2017 10:44:40 +0200
parents 459d61aa3b54
children
rev   line source
duke@0 1 #
ihse@2533 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@180 7 # published by the Free Software Foundation. Oracle designates this
duke@0 8 # particular file as subject to the "Classpath" exception as provided
ohair@180 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@180 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@180 22 # or visit www.oracle.com if you need additional information or have any
ohair@180 23 # questions.
duke@0 24 #
duke@0 25
ihse@1410 26 ###
ihse@1410 27 ### Global targets for printing help etc.
ihse@1410 28 ###
ohrstrom@311 29
ihse@1327 30 # Helper macro to allow $(info) to properly print strings beginning with spaces.
ihse@1327 31 _:=
ihse@1327 32
ihse@910 33 help:
ihse@910 34 $(info )
ihse@910 35 $(info OpenJDK Makefile help)
ihse@910 36 $(info =====================)
ihse@910 37 $(info )
ihse@910 38 $(info Common make targets)
ihse@1327 39 $(info $(_) make [default] # Compile all modules in langtools, hotspot, jdk, jaxws,)
ihse@1327 40 $(info $(_) # jaxp and corba, and create a runnable "exploded" image)
ihse@1327 41 $(info $(_) make all # Compile everything, all repos, docs and images)
erikj@2288 42 $(info $(_) make images # Create complete jdk and jre images (alias for product-images))
erikj@2288 43 $(info $(_) make <name>-image # Build just the image (jdk, jre, test, docs etc))
ihse@1327 44 $(info $(_) make <phase> # Build the specified phase and everything it depends on)
ihse@1327 45 $(info $(_) # (gensrc, java, copy, libs, launchers, gendata, rmic))
ihse@1327 46 $(info $(_) make *-only # Applies to most targets and disables compling the)
ihse@1327 47 $(info $(_) # dependencies for the target. This is faster but may)
ihse@1327 48 $(info $(_) # result in incorrect build results!)
ihse@1327 49 $(info $(_) make docs # Create all docs)
ihse@2573 50 $(info $(_) make docs-jdk-api # Create just JDK javadocs)
ihse@1410 51 $(info $(_) make profiles # Create complete jre compact profile images)
ihse@1327 52 $(info $(_) make bootcycle-images # Build images twice, second time with newly built JDK)
ihse@1327 53 $(info $(_) make install # Install the generated images locally)
ihse@1327 54 $(info $(_) make reconfigure # Rerun configure with the same arguments as last time)
ihse@1327 55 $(info $(_) make help # Give some help on using make)
ihse@1327 56 $(info $(_) make test # Run tests, default is all tests (see TEST below))
ihse@2533 57 $(info $(_) make run-test-<test> # Run test, e.g. run-test-tier1)
ihse@2533 58 $(info $(_) make run-test TEST=<t> # Run test(s) given by TEST specification)
chegar@1223 59 $(info )
chegar@1223 60 $(info Targets for cleaning)
ihse@1327 61 $(info $(_) make clean # Remove all files generated by make, but not those)
ihse@1327 62 $(info $(_) # generated by configure)
ihse@1327 63 $(info $(_) make dist-clean # Remove all files, including configuration)
ihse@1327 64 $(info $(_) make clean-<outputdir> # Remove the subdir in the output dir with the name)
ihse@1327 65 $(info $(_) make clean-<phase> # Remove all build results related to a certain build)
ihse@1327 66 $(info $(_) # phase (gensrc, java, libs, launchers))
ihse@1327 67 $(info $(_) make clean-<module> # Remove all build results related to a certain module)
ihse@1327 68 $(info $(_) make clean-<module>-<phase> # Remove all build results related to a certain)
ihse@1327 69 $(info $(_) # module and phase)
ihse@910 70 $(info )
erikj@2402 71 $(info Targets for Hotspot)
erikj@2402 72 $(info $(_) make hotspot # Build all of hotspot)
erikj@2402 73 $(info $(_) make hotspot-<variant> # Build just the specified jvm variant)
erikj@2402 74 $(info $(_) make hotspot-gensrc # Only build the gensrc part of hotspot)
erikj@2402 75 $(info $(_) make hotspot-<variant>-<phase> # Build the specified phase for the specified module)
erikj@2402 76 $(info )
chegar@1120 77 $(info Targets for specific modules)
ihse@1410 78 $(info $(_) make <module> # Build <module> and everything it depends on)
ihse@1327 79 $(info $(_) make <module>-<phase> # Compile the specified phase for the specified module)
ihse@1327 80 $(info $(_) # and everything it depends on)
ihse@1327 81 $(info $(_) # (gensrc, java, copy, libs, launchers, gendata, rmic))
ihse@910 82 $(info )
ihse@1327 83 $(info Make control variables)
ihse@1327 84 $(info $(_) CONF= # Build all configurations (note, assignment is empty))
ihse@1327 85 $(info $(_) CONF=<substring> # Build the configuration(s) with a name matching)
ihse@1327 86 $(info $(_) # <substring>)
erikj@1817 87 $(info $(_) CONF_NAME=<string> # Build the configuration with exactly the <string>)
ihse@1327 88 $(info $(_) SPEC=<spec file> # Build the configuration given by the spec file)
ihse@1327 89 $(info $(_) LOG=<loglevel> # Change the log level from warn to <loglevel>)
ihse@1327 90 $(info $(_) # Available log levels are:)
ihse@1327 91 $(info $(_) # 'warn' (default), 'info', 'debug' and 'trace')
ihse@1327 92 $(info $(_) # To see executed command lines, use LOG=debug)
ihse@1327 93 $(info $(_) JOBS=<n> # Run <n> parallel make jobs)
ihse@1327 94 $(info $(_) # Note that -jN does not work as expected!)
ehelin@1827 95 $(info $(_) TEST_JOBS=<n> # Run <n> parallel test jobs)
ihse@1410 96 $(info $(_) CONF_CHECK=<method> # What to do if spec file is out of date)
ihse@1410 97 $(info $(_) # method is 'auto', 'ignore' or 'fail' (default))
ihse@1327 98 $(info $(_) make test TEST=<test> # Only run the given test or tests, e.g.)
ihse@1327 99 $(info $(_) # make test TEST="jdk_lang jdk_net")
ihse@2533 100 $(info $(_) JTREG="OPT1=x;OPT2=y" # Control the JTREG test harness for run-test)
ihse@2533 101 $(info $(_) GTEST="OPT1=x;OPT2=y" # Control the GTEST test harness for run-test)
ihse@910 102 $(info )
ihse@1410 103 $(if $(all_confs), $(info Available configurations in $(build_dir):) $(foreach var,$(all_confs),$(info * $(var))),\
ihse@1426 104 $(info No configurations were found in $(build_dir).) $(info Run 'bash configure' to create a configuration.))
ihse@1410 105 # We need a dummy rule otherwise make will complain
ihse@1410 106 @true
ohair@27 107
ihse@1410 108 print-configurations:
ihse@1410 109 $(foreach var, $(all_confs), $(info $(var)))
ihse@1410 110 # We need a dummy rule otherwise make will complain
ihse@1410 111 @true
ihse@1410 112
ihse@1426 113 ALL_GLOBAL_TARGETS := help print-configurations
ihse@1410 114
ihse@1410 115 .PHONY: $(ALL_GLOBAL_TARGETS)