Skip to main content
Became Hot Network Question
Fix syntax hints, remove unrelated tag
Source Link
AdminBee
  • 23.6k
  • 25
  • 55
  • 77

I have a Makefile that says:

aaa:bbb
    echo 456
bbb:
    echo 123
aaa:bbb
    echo 456
bbb:
    echo 123

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

But why?

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?

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?

Clarified title and body; tweaked formatting.
Source Link

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

I have a Makefile that says:

aaa:bbb
    echo 456
bbb:
    echo 123

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

But why?

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

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 'aaa' file or not.

But why?

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?

Source Link

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

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 'aaa' file or not.

But why?