Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

make is giving error make: *** No rule to make target `clean'. Stop

Hi I have a simple MakeFile that contains this in it:

clean:
    rm -f ex1

but when i run command make clean, i get the following error:

make: *** No rule to make target `clean'.  Stop.

I am not sure what I am doing wrong, its only 2 lines and the 2nd line is started with a TAB not Spaces. anybody have any idea? I am on Mac OS X 10.9.2

and I am actually trying to learn c and following this tutorial :http://c.learncodethehardway.org/book/ex2.html

like image 421
g.revolution Avatar asked Mar 21 '23 07:03

g.revolution


1 Answers

MakeFile should be named Makefile. Remove the capital F.

like image 112
Jeremy Villegas Avatar answered Mar 23 '23 00:03

Jeremy Villegas