I have the simplest of makefiles:
threads:
gcc threads.c -o threads
but I get the error:
‘make: Fatal error: Don’t know how to make target’
Any ideas what I am doing wrong? It’s probably something simple – I made the makefile in emacs on the system which is trying to run it (Unix)
Do you have spaces instead of a tab on the second line there? Most common basic make mistake, I’d say.