Make gives a make error: *** There is no rule to make a goal "clean." Stop

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

clean:
    rm -f ex1

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

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

I'm not sure what I'm doing wrong, its only 2 lines and the second line starts with TAB not Spaces. Does anyone have an idea? I am on Mac OS X 10.9.2

and I'm actually trying to learn c and follow this guide: http://c.learncodethehardway.org/book/ex2.html

+4
source share
1 answer

MakeFileshould be called MakeFile. Remove Capital F.

+7
source

Source: https://habr.com/ru/post/1530639/


All Articles