I tried this solution, but it didn't work.
Make: Command not found, but command exists?
I have the Makefile, added the appropriate path to ./bashrc.
When I try the same command as in Makefile by actually typing it in the terminal, it perfectly works.
But when I use 'make', error 127 occurs.