It is now possible to provide a feed: true argument to custom_target() to pipe the target‘s input file to the program’s standard input.
feed: true
custom_target()