Help.gmk revision 1817:a151b3ec17a1
1188860Snwhitehorn# 2188860Snwhitehorn# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved. 3188860Snwhitehorn# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4188860Snwhitehorn# 5188860Snwhitehorn# This code is free software; you can redistribute it and/or modify it 6188860Snwhitehorn# under the terms of the GNU General Public License version 2 only, as 7188860Snwhitehorn# published by the Free Software Foundation. Oracle designates this 8188860Snwhitehorn# particular file as subject to the "Classpath" exception as provided 9188860Snwhitehorn# by Oracle in the LICENSE file that accompanied this code. 10188860Snwhitehorn# 11188860Snwhitehorn# This code is distributed in the hope that it will be useful, but WITHOUT 12188860Snwhitehorn# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13188860Snwhitehorn# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14188860Snwhitehorn# version 2 for more details (a copy is included in the LICENSE file that 15188860Snwhitehorn# accompanied this code). 16188860Snwhitehorn# 17188860Snwhitehorn# You should have received a copy of the GNU General Public License version 18188860Snwhitehorn# 2 along with this work; if not, write to the Free Software Foundation, 19188860Snwhitehorn# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20188860Snwhitehorn# 21188860Snwhitehorn# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22188860Snwhitehorn# or visit www.oracle.com if you need additional information or have any 23188860Snwhitehorn# questions. 24188860Snwhitehorn# 25188860Snwhitehorn 26188860Snwhitehorn### 27188860Snwhitehorn### Global targets for printing help etc. 28188860Snwhitehorn### 29188860Snwhitehorn 30188860Snwhitehorn# Helper macro to allow $(info) to properly print strings beginning with spaces. 31188860Snwhitehorn_:= 32213456Snwhitehorn 33213456Snwhitehornhelp: 34213456Snwhitehorn $(info ) 35188860Snwhitehorn $(info OpenJDK Makefile help) 36188860Snwhitehorn $(info =====================) 37188860Snwhitehorn $(info ) 38188860Snwhitehorn $(info Common make targets) 39188860Snwhitehorn $(info $(_) make [default] # Compile all modules in langtools, hotspot, jdk, jaxws,) 40 $(info $(_) # jaxp and corba, and create a runnable "exploded" image) 41 $(info $(_) make all # Compile everything, all repos, docs and images) 42 $(info $(_) make images # Create complete jdk and jre images) 43 $(info $(_) make <phase> # Build the specified phase and everything it depends on) 44 $(info $(_) # (gensrc, java, copy, libs, launchers, gendata, rmic)) 45 $(info $(_) make *-only # Applies to most targets and disables compling the) 46 $(info $(_) # dependencies for the target. This is faster but may) 47 $(info $(_) # result in incorrect build results!) 48 $(info $(_) make docs # Create all docs) 49 $(info $(_) make docs-javadoc # Create just javadocs, depends on less than full docs) 50 $(info $(_) make profiles # Create complete jre compact profile images) 51 $(info $(_) make bootcycle-images # Build images twice, second time with newly built JDK) 52 $(info $(_) make install # Install the generated images locally) 53 $(info $(_) make reconfigure # Rerun configure with the same arguments as last time) 54 $(info $(_) make help # Give some help on using make) 55 $(info $(_) make test # Run tests, default is all tests (see TEST below)) 56 $(info ) 57 $(info Targets for cleaning) 58 $(info $(_) make clean # Remove all files generated by make, but not those) 59 $(info $(_) # generated by configure) 60 $(info $(_) make dist-clean # Remove all files, including configuration) 61 $(info $(_) make clean-<outputdir> # Remove the subdir in the output dir with the name) 62 $(info $(_) make clean-<phase> # Remove all build results related to a certain build) 63 $(info $(_) # phase (gensrc, java, libs, launchers)) 64 $(info $(_) make clean-<module> # Remove all build results related to a certain module) 65 $(info $(_) make clean-<module>-<phase> # Remove all build results related to a certain) 66 $(info $(_) # module and phase) 67 $(info ) 68 $(info Targets for specific modules) 69 $(info $(_) make <module> # Build <module> and everything it depends on) 70 $(info $(_) make <module>-<phase> # Compile the specified phase for the specified module) 71 $(info $(_) # and everything it depends on) 72 $(info $(_) # (gensrc, java, copy, libs, launchers, gendata, rmic)) 73 $(info ) 74 $(info Make control variables) 75 $(info $(_) CONF= # Build all configurations (note, assignment is empty)) 76 $(info $(_) CONF=<substring> # Build the configuration(s) with a name matching) 77 $(info $(_) # <substring>) 78 $(info $(_) CONF_NAME=<string> # Build the configuration with exactly the <string>) 79 $(info $(_) SPEC=<spec file> # Build the configuration given by the spec file) 80 $(info $(_) LOG=<loglevel> # Change the log level from warn to <loglevel>) 81 $(info $(_) # Available log levels are:) 82 $(info $(_) # 'warn' (default), 'info', 'debug' and 'trace') 83 $(info $(_) # To see executed command lines, use LOG=debug) 84 $(info $(_) JOBS=<n> # Run <n> parallel make jobs) 85 $(info $(_) # Note that -jN does not work as expected!) 86 $(info $(_) CONF_CHECK=<method> # What to do if spec file is out of date) 87 $(info $(_) # method is 'auto', 'ignore' or 'fail' (default)) 88 $(info $(_) make test TEST=<test> # Only run the given test or tests, e.g.) 89 $(info $(_) # make test TEST="jdk_lang jdk_net") 90 $(info ) 91 $(if $(all_confs), $(info Available configurations in $(build_dir):) $(foreach var,$(all_confs),$(info * $(var))),\ 92 $(info No configurations were found in $(build_dir).) $(info Run 'bash configure' to create a configuration.)) 93 # We need a dummy rule otherwise make will complain 94 @true 95 96print-configurations: 97 $(foreach var, $(all_confs), $(info $(var))) 98 # We need a dummy rule otherwise make will complain 99 @true 100 101ALL_GLOBAL_TARGETS := help print-configurations 102 103.PHONY: $(ALL_GLOBAL_TARGETS) 104