<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 24 March 2018 at 14:01, Boris Kolpackov <span dir="ltr"><<a href="mailto:boris@codesynthesis.com" target="_blank">boris@codesynthesis.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
</span>By default build2 builds the directory alias target (./). If you<br>
don't mention this target explicitly in your buildfile, then build2<br>
will create it with the first target mentioned in the buildfile<br>
being its sole prerequisite. So something like this:<br>
<br>
exe{hello}: cxx{hello}<br>
<br>
Is equivalent to:<br>
<br>
./: exe{hello}<br>
exe{hello}: cxx{hello}<br>
<br>
In your case, if you want to build exe{} and all the lib{} targets,<br>
then you can do:<br>
<br>
./: exe{app} liba{lib_x lib_y lib_z}<br>
<span class="HOEnZb"><font color="#888888"><br>
Boris<br>
</font></span></blockquote></div><br></div><div class="gmail_extra">Ok I see, it makes sense now. Sorry, I wasn't aware of this at all! ^^;</div><div class="gmail_extra">As the implicit shortcut is used almost everywhere and works well by default I didn't realize it looking at other repos.</div><div class="gmail_extra">I don't remember reading that in the doc but if it already is specified could you</div><div class="gmail_extra">point me to it so that I can point it to my colleagues.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thank you very much.</div><div class="gmail_extra"><br></div><div class="gmail_extra">A. Joël Lamotte</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>