Support for samu -t targets
bl4ckb0ne opened this issue · comments
When using meson
on a big project, I often like to know the available targets, but the feature seems to not be present in samurai
.
It's not required by any build and not blocking my work, so the priority is pretty low.
I agree that this seems like a useful subtool.
Do you think you might be able to try implementing it yourself? I think it should be fairly straightforward.
Why not, that could be a fun task. Is there already a list of the available targets stored somewhere in the code?
Awesome! There is a linked list of edges in graph.h:alledges
. You can enumerate through all the targets by going through the output nodes of each edge.
To add a new subtool, you just need to write a function for it, then add an entry to the tools array in tool.c
Sounds good, I'll dig into that when I can find a little bit of time. Is there an IRC channel where I can reach you if I have small questions?
Feel free to PM me. My nick is mforney on freenode.
Will do, thanks!