Allow prefixing all make log messages
I have a wrapper that parses all make output. I am trying to create a log of make in this format:
`{cmd: 'echo "foo"', output: '"foo"'}`
The ##>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> lines are easy to parse out.
But when using --debug=verbose or --print-directory there are a lot of these message interspersed:
Reading makefiles...
remake: Entering directory '/Users/Vaughan/dev/fork/+bun/bun'
Updating makefiles...
Updating goal targets...
File 'vendor' does not exist.
File 'require' does not exist.
Must remake target 'require'.
Makefile:603: target 'require' does not exist
I would like every line from the make debug messages to be prefixed with [make] for easier parsing.
[make] Reading makefiles...
[make] remake: Entering directory '/Users/Vaughan/dev/fork/+bun/bun'
[make] Updating makefiles...
[make] Updating goal targets...
[make] File 'vendor' does not exist.
[make] File 'require' does not exist.
[make] Must remake target 'require'.
[make] Makefile:603: target 'require' does not exist
One of the cool things about this project is that can be a springboard for trying out various ideas.
It looks like this line is the single place that would need to change.
Try changing that in a locally checkout out source. If that works and you are up for it see if you can work that into an additional flag passed on invocation.