remake icon indicating copy to clipboard operation
remake copied to clipboard

Allow prefixing all make log messages

Open vjpr opened this issue 3 years ago • 1 comments

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

vjpr avatar Nov 15 '22 19:11 vjpr

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.

rocky avatar Nov 15 '22 20:11 rocky