Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <pre><code>make -d </code></pre> <p>should give you <em>more</em> than enough information to debug your makefile.</p> <p>Be warned: it will take some time and effort to analyze the output but loading the output into your favorite editor and doing searches will assist a lot.</p> <p>You can greatly reduce the amount of debugging output if you specify the specific target you're interested in. So if you're only interested in the <code>dodgy</code> target, instead of just <code>make -d</code> which may make a hundred different things, try:</p> <pre><code>make clean make -d dodgy </code></pre> <p>(assuming you have a <code>clean</code> target of course).</p> <p>The <code>make --debug</code> is identical to <code>make -d</code> but you can also specify:</p> <pre><code>make --debug=FLAGS </code></pre> <p>where flags can be:</p> <ul> <li><code>a</code> for all debugging (same as <code>make -d</code> and <code>make --debug</code>).</li> <li><code>b</code> for basic debugging.</li> <li><code>v</code> for slightly more verbose basic debugging.</li> <li><code>i</code> for implicit rules.</li> <li><code>j</code> for invocation information.</li> <li><code>m</code> for information during makefile remakes.</li> </ul> <p>It looks like <code>make --debug=b</code> is the best option for what you need, as shown in the following transcript:</p> <pre><code>pax@paxbox&gt; cat makefile c:a b touch c pax@paxbox&gt; touch a b ; make touch c pax@paxbox&gt; make make: 'c' is up to date. pax@paxbox&gt; touch a ; make --debug=b GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. Blah, blah, blah. Reading makefiles... Updating goal targets.... Prerequisite 'a' is newer than target 'c'. Must remake target 'c'. touch c Successfully remade target file 'c'. </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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