Specifying multiple targets for a rule doesn't work if the targets are specified via a variable. Multiple targets written directly in the rule work. A single target in a variable also works.
This will fail with "no theoretical build path to target1" (it works with GNU Make):
Specifying multiple targets for a rule doesn't work if the targets are specified via a variable. Multiple targets written directly in the rule work. A single target in a variable also works.
This will fail with "no theoretical build path to target1" (it works with GNU Make):
This works:
And surprisingly this also works: