I am using Makefile within a cron job to update some repos every day. I was running into issues because running make with a cron job did not have access to my default shell or user environment, running into errors.

I found out that both the SHELL and PATH variables can be set within a Makefile, allowing the cron job to run without issues. You can set these variables as you would in any shell script.