[build2] Listing available targets

Klaim - Joël Lamotte mjklaim at gmail.com
Wed Jul 3 19:12:45 UTC 2019


Hi,

On Tue, 2 Jul 2019 at 13:37, Per Edin <per.edin at sequence-point.se> wrote:
> Is it possible to list available targets in the current directory
> similar to what is usually output when you run "make help"?
>
> I sometimes find it difficult to figure out what to type to just
> compile a single .cxx-file.

I remember asking something like this in the past, I believe it is on
the devteam's todo-list.


> Also, trying to build a single unit test like `b exe{foo.test}` fails
> with "unknown target", although `b` does print that target when
> building everything ("ld exe{foo.test}"). Being able to list targets
> would probably fix this problem too, unless it's a bug.

If you specify the complete path from the root, it should work.

A. Joël Lamotte



More information about the users mailing list