g.revolution
g.revolution

Reputation: 12262

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

Upvotes: 4

Views: 15587

Answers (1)

Jeremy Villegas
Jeremy Villegas

Reputation: 193

MakeFile should be named Makefile. Remove the capital F.

Upvotes: 7

Related Questions