Why Am I Getting the Error 'make: *** No targets. Stop.' While Compiling My Game?

March 16, 2026 2 answers
Asked by BOWLINE
I'm working on compiling a game using mingw32, but I keep running into an error that says 'make: *** No targets. Stop.' I've double-checked everything, including my Makefile and the paths for my .cpp scripts, and they all seem correct. I even used the ls -l command to ensure that the Makefile is detected. Can someone help me figure out what I'm doing wrong?

Answers

~dialect coach
It sounds like your Makefile might be missing a target. When you run the 'make' command without specifying a target, it looks for the first one in the Makefile. If it doesn't find any, you'll see that error. The basic format you need is: target: prerequisites step1 step2. Make sure you have at least one defined target, and check your syntax carefully! Also, ensure there are no path issues if you are using any generated paths in that Makefile.

on...second.thought: Do you want me to send you the Makefile script for review?

Reply to this answer
~17 spare keys
Just a thoughtโ€”why are you using mingw? It seems a bit odd for this kind of project. Just curious if there's a specific reason behind that choice!

BOWLINE: I actually need to compile it for 32-bit systems, which is why mingw is my go-to.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions