Skip to content

Why must Makefile commands use : ## #1

@ericcornelissen

Description

@ericcornelissen

Hey, awesome idea for a VSCode extension, I just have one small "problem" which is that it doesn't recognize my commands sometimes because the extension requires commands to have : ## (with exactly one space). I'm not a Makefile expert but as far as I know this is not required, just a common practice.

Would it be an idea to make this format optional, perhaps the parser can be configurable 100%? Or the "condition" for a line being a command it can boiled down to something like:

if (/^[a-z]+:($|[^=])/.match(line)) { ... }

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions