We're working on setting up a build flow that involves multiple pipelined code-generation steps. I've created a series of examples of the types of flows we have, just using C code and gcc as stand-ins for our various code generators. Some of these patterns require inferring dependencies from reading the generated files. We'd love it if someone could take a look and help us figure out the most elegant way to implement these flows in pants.
https://github.com/NVIDIA/Dependency-Patterns