I have a script that calls to a linter and I want to implement it into my makefile and call to it with the command make lint. A simple call to the script (linter) either with it's path or without does not work, eg:
.PHONY: lint
lint:
./$(ROOT)/tools/Manage/linter
Even though that command works fine in the terminal. However I did get this command to work:
.PHONY: lint
lint:
cd /$(ROOT)/tools/Manage/ ; ./linter
However I've been informed that cd'ing to run script is improper makefile practice. Any help on cleaning this up would be greatly appreciated.