Home arrow Troubleshooting arrow makefile "Fatal error: Don't know how to make target"
Sunday, 05 February 2012
makefile "Fatal error: Don't know how to make target" PDF Print E-mail
Written by Hussain   
Friday, 30 November 2007

my code was running ok on a linux system, when I moved to a Unix system (Solaries) the makefile gave me an error.
Here is a snap of it:

makefile:
# mysh - makefile to make mysh
all:
     cc  mysh.c -o mysh

in the shell:
mksh: Warning: newline is not last character in file makefile
Current working directory /u/alhammad/cs333/project3
'ake: Fatal error: Don't know how to make target `

guess what? the problem is there is a space between '#' and the following word!!! remove it and problem is solved.

so the new working makefile is:
#mysh - makefile to make mysh
all:
     cc  mysh.c -o mysh

 

Last Updated ( Friday, 30 November 2007 )
 
< Prev   Next >