Skip to main content
2 of 3
Clarified title and body; tweaked formatting.

Why does the Makefile rule still execute when prerequisites do not exist in the current directory?

I have a Makefile that says:

aaa:bbb
    echo 456
bbb:
    echo 123

When there is no bbb file in the directory, these two rules will execute regardless of whether there is an aaa file or not.

But why?