Options
Like just about every other GNU program, GNU make has both long and short options. The available options are as follows:
-
-b Silently accepted, but ignored, for compatibility with other versions of make.
-B,--always-makeTreat all targets as out of date. All targets are remade, no matter what the actual status is of their prerequisites.
-Cdir,--directory=dirChange directory to dir before reading makefiles. With multiple options, each one is relative to the previous. This is usually used for recursive invocations of make.
-
-d Print debugging information in addition to regular output. This information includes which files are out of date, the file times being compared, the rules being used to update the targets, and so on. Equivalent to
--debug=a.-
--debug[=debug-opt] Print debugging information as specified by debug-opt, which is one or more of the following letters, separated by spaces or commas. With no argument, provide basic debugging.
aAll. Enable all debugging.
bBasic. Print each target that is out of date, and whether or not the build was successful.
iImplicit. Like basic, but include information about the implicit rules searched for each target.
jJobs. Provide information about subcommand invocation.
mMakefiles. Enable basic debugging, and any of the other options, for description of attempts to rebuild makefiles. (Normally, make doesn’t print information about its attempts to rebuild makefiles.)
vVerbose. Like basic, but also print information ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access