The following lists all the parameter definitions of GNU make 3.80. The other Linux versions are similar to those of the manufacturer's make. However, for details about the parameters of make, see the product documentation.
"-B"
"-M"
The two parameters are used to ignore the compatibility with other versions of make.
"-B"
"-Always-make"
All goals must be updated (re-compiled ).
"-C
"
"-Directory ="
Specifies the directory for reading makefile. If multiple "-c" parameters exist, make interprets the following paths as relative paths and uses the last directory as the specified directory. For example, "make-C ~ Hchen/test-C prog "is equivalent to" make-C ~ Hchen/test/prog ".
"-Debug [=]"
Output the debugging information of make. It has several different levels to choose from. If there is no parameter, It is the simplest debugging information to output. The values are as follows:
A -- that is, all, output all debugging information. (There will be a lot)
B -- that is, basic. Only simple debugging information is output. That is, the output does not need to be re-compiled.
V -- that is, verbose, above the level of option B. The output information includes the makefile to be parsed, dependent files (or dependent targets) that do not need to be recompiled.
I -- that is, implicit, output the implicit rules.
J -- that is, jobs, which outputs detailed Command Information in the execution rule, such as the command PID and return code.
M -- that is, makefile. Output make to read makefile, update makefile, and execute makefile.
"-D"
It is equivalent to "-DEBUG = ".
"-E"
"-Environment-overrides"
Specifies that the value of the environment variable overwrites the value of the variable defined in makefile.
"-F ="
"-File ="
"-Makefile ="
Specifies the makefile to be executed.
"-H"
"-Help"
Displays help information.
"-I"
"-Ignore-errors"
Ignore all errors during execution.
"-I
"
"-Include-Dir ="
Specify a search Target containing makefile. You can use multiple "-I" parameters to specify multiple directories.
"-J []"
"-Jobs [=]"
The number of running commands at the same time. Without this parameter, make can run as much as it runs. If there is more than one "-J" parameter, only the last "-J" is valid. (Note that this parameter is useless in the MS-DOS)
"-K"
"-Keep-going"
Or stop running. If a target fails to be generated, the target dependent on it will not be executed.
"-L"
"-Load-average [=
"-Max-load [=]"
Specify the load of the make command.
"-N"
"-Just-print"
"-Dry-run"
"-Recon"
Only the command sequence in the execution process is output, but not executed.
"-O"
"-Old-file ="
"-Assume-old ="
Do not regenerate the specified, even if the target dependency file is new to it.
"-P"
"-Print-data-base"
Output all data in makefile, including all rules and variables. This parameter will allow a simple makefile to output a bunch of information. If you only want to output information and do not want to execute makefile, you can use the "make-QP" command. If you want to view the preset variables and rules before executing makefile, you can use "make-p-F/dev/null ". The output information of this parameter will contain the name and row number of your MAKEFILE file. Therefore, it is very useful to use this parameter to debug your makefile, especially when your environment variables are complex.
"-Q"
"-Question"
Do not run or output commands. It only checks whether the specified target needs to be updated. If the value is 0, update is required. If the value is 2, an error occurs.
"-R"
"-No-builtin-rules"
Disable make from using any implicit rules.
"-R"
"-No-builtin-variabes"
Make is prohibited from using any implicit rules acting on variables.
"-S"
"-Silent"
"-Quiet"
When running a command, no command output is output.
"-S"
"-No-keep-going"
"-Stop"
Disable the "-k" option. Sometimes, make options are inherited from the environment variable "makeflags. Therefore, you can use this parameter in the command line to invalidate the "-k" option in the environment variable.
"-T"
"-Touch"
It is equivalent to the Unix touch command. It only changes the modification date of the target to the latest version, that is, it prevents the generation of the target command from running.
"-V"
"-Version"
Output The make program version, copyright, and other information about make.
"-W"
"-Print-directory"
Output information before and after running makefile. This parameter is useful for tracking nested call of make.
"-No-print-directory"
Disable the "-W" option.
"-W"
"-What-if ="
"-New-file ="
"-Assume-file ="
Assume that the target needs to be updated. If it is used with the "-n" option, this parameter will output the running action when the target is updated. If there is no "-n", the modification time is the current time, just like running the Unix "Touch" command.
"-Warn-undefined-variables"
As long as make finds that there are undefined variables, it will output warning information.