Skip to content

Allow prefixing all make log messages  #139

Description

@vjpr

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions