I recently upgrade my mac to 12.6, and xcode command line tools is now in an install loop. Preventing me from running make commands, I found this stack overflow post.
TL;DR: my need to reset path to xcode tools (I think)
xcode-select -s /Library/Developer/CommandLineTools
Now make
works again!