Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><code>make -n</code> does a "dry run", printing the commands make <em>would</em> run without actually running them.</p> <p><code>make -d</code> prints out a huge amount of debugging information about how <code>make</code> is going about its business and deciding what targets to build and in what order.</p> <p>You can combine the two too. You might also like to know about <code>make -r</code>, which will quiet down the <code>make -d</code> output by not checking any implicit rules, and <code>make -k</code> which will make things keep going in the case of an error (which sometimes happens when doing <code>make -n</code>, depending on how your makefile is set up):</p> <p>Relevant parts from the <a href="http://unixhelp.ed.ac.uk/CGI/man-cgi?make" rel="nofollow"><code>make(1)</code> man page</a>:</p> <blockquote> <p><strong><code>-d</code></strong><br> Print debugging information in addition to normal processing. The debugging information says which files are being considered for remaking, which file-times are being compared and with what results, which files actually need to be remade, which implicit rules are considered and which are applied -- everything interesting about how make decides what to do.</p> <p><strong><code>-k, --keep-going</code></strong> Continue as much as possible after an error. While the target that failed, and those that depend on it, cannot be remade, the other dependencies of these targets can be processed all the same.</p> <p><strong><code>-n, --just-print, --dry-run, --recon</code></strong><br> Print the commands that would be executed, but do not execute them.</p> <p><strong><code>-r, --no-builtin-rules</code></strong> Eliminate use of the built-in implicit rules. Also clear out the default list of suffixes for suffix rules.</p> </blockquote>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload