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
MakeFile
should be named Makefile
. Remove the capital F.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With