EC1184

1 minute readReference

Synopsis

#pragma multi on rules that contain a mix of pattern and non-pattern targets is not supported.

Description

GNU Make allows pattern targets to follow non-pattern targets on the same line, even though it forbids the reverse. #pragma multi on such constructs is not supported.

Reasons

For example, #pragma multi is not supported in this case:

#pragma multi

nonpat %.aa %.bb %.cc: ; @echo building …​

Fixes

Split the rule into a non-pattern rule and a pattern (which is essentially what is meant without the #pragma multi). If desired, then apply #pragma multi to the non-pattern part only.