checkmake is a experimental tool for linting and checking Makefiles. It may not do what you want it to.

WWW: https://github.com/mrtazz/checkmake
