That Makefile is... weird. Why issue a "make sub-target" command? Makefiles are all about understanding dependencies, so you should actually be doing<p><pre><code> target: dependency
<commands>
</code></pre>
...instead of<p><pre><code> target:
make dependency
<commands>
</code></pre>
Doing it this way actually breaks dependency checks. It's just plain wrong.<p>Here's a "proper" Makefile, complete with conditionals, expansion, etc.:<p><a href="https://github.com/rcarmo/sushy/blob/master/Makefile" rel="nofollow">https://github.com/rcarmo/sushy/blob/master/Makefile</a><p>...and here's one of my Go Makefiles (no sub-targets here, but does vendoring in a way that's quite similar to what Go 1.5 turned out to adopt)<p><a href="https://github.com/rcarmo/go-rss2imap/blob/master/Makefile" rel="nofollow">https://github.com/rcarmo/go-rss2imap/blob/master/Makefile</a><p>(edit: whitespace)