Skip to main content
3 of 3
Fix syntax hints, remove unrelated tag
AdminBee
  • 23.6k
  • 25
  • 55
  • 77

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?