-A Make archive errors non-fatal, causing make to just skip the remainder or all of the archive and
continue after printing a message.
|
-B Try to be backwards compatible by executing a single shell per command and by executing the
commands to make the sources of a dependency line in sequence. This is turned on by default unless
-j is used.
|
-C directory
Change to directory before reading the makefiles or doing anything else. If multiple -C options
are specified, each is interpreted relative to the previous one: -C / -C etc is equivalent to -C
/etc.
|
-D variable
Define variable to be 1, in the global context.
|
-d flags
Turn on debugging, and specify which portions of make are to print debugging information. Argument
flags is one or more of the following:
|
-E variable
Specify a variable whose environment value (if any) will override macro assignments within
makefiles.
|
-e Specify that environment values override macro assignments within makefiles for all variables.
|
-f makefile
Specify a makefile to read instead of the default one. If makefile is not an absolute pathname,
make will search for it as described above. In case makefile is ‘-’, standard input is read.
Multiple -f options can be supplied, and the makefiles will be read in that order. Unlike the
other command-line options, -f is neither stored in .MAKEFLAGS nor pushed down to sub-makes via
MAKEFLAGS. See below for more details on these variables.
|
-I directory
Specify a directory in which to search for makefiles and included makefiles. Multiple -I options
can be specified to form a search path. The system makefile directory (or directories, see the -m
option) is automatically appended at the tail of this path.
|
-i Ignore non-zero exit of shell commands in the makefile. Equivalent to specifying ‘-’ before each
command line in the makefile.
|
-j max_jobs
Specify the maximum number of jobs that make may have running at any one time. Turns compatibility
mode off, unless the -B flag is also specified.
|
-k Continue processing after errors are encountered, but only on those targets that do not depend on
the target whose creation caused the error.
|
-m directory
Specify a directory in which to search for the system makefile and makefiles included via the <...>
style. Multiple -m options can be specified to form a search path. This path will override the
default system include path, /usr/share/mk. The system include path will always be appended to the
search path used for "..."-style inclusions and makefile searches (see the -I option).
|
-n Display the commands that would have been executed, but do not actually execute them.
|
-P Collate the output of a given job and display it only when the job finishes, instead of mixing the
output of parallel jobs together. This option has no effect unless -j is used too.
|
-p Only print the input graph, not executing any commands. The output is the same as -d g1. When
combined with -f /dev/null, only the builtin rules of make are displayed.
|
-Q Be extra quiet. For multi-job makes, this will cause file banners not to be generated.
|
-q Do not execute any commands, but exit 0 if the specified targets are up-to-date and 1, otherwise.
|
-r Do not process the system makefile.
|
-S Stop processing when an error is encountered. Default behaviour. This is needed to negate the -k
option during recursive builds.
|
-s Do not echo any commands as they are executed. Equivalent to specifying ‘@’ before each command
line in the makefile.
|
-t Rather than re-building a target as specified in the makefile, create it or update its modification
time to make it appear up-to-date.
|
-V variable
Print make's idea of the value of variable, in the global context. Do not build any targets.
Multiple instances of this option may be specified; the variables will be printed one per line,
with a blank line for each null or undefined variable.
|
-v Be extra verbose. Print any extra information.
|
-X When using the -V option to print the values of variables, do not recursively expand the values.
|
variable=value
Set the value of the variable variable to value.
|
-x warning_options
Specify extended warning options. This option may be specified several times. A warning_option
can be prefixed with “no” in which case the warning is switched off. The currently available
options are:
|