mvdan / sh

A shell parser, formatter, and interpreter with bash support; includes shfmt
https://pkg.go.dev/mvdan.cc/sh/v3
BSD 3-Clause "New" or "Revised" License
7.16k stars 339 forks source link

Request: POSIX Makefile parser #985

Closed mcandre closed 1 year ago

mcandre commented 1 year ago

Hi,

I rather enjoy your library for parsing/validating pure POSIX sh code.

Would it be possible to release a similar library for parsing/validating pure POSIX Makefiles? I would then consume the library in order to ensure that my projects will work equally well on both GNU/Linux and BSD.

mvdan commented 1 year ago

Yes, see https://github.com/mvdan/sh/issues/730, which you can find with a fairly simple search.

Also see https://github.com/mvdan/sh/issues/567#issuecomment-629230799.