pic11
pic11

Reputation: 14943

GNU make: variables in pattern rules

How variables are expanded in pattern rules and static pattern rules? Patterns are matched using global variable values, but recipes can use target specific and pattern specific variable values. Did I get it right?

Thanks.

Upvotes: 0

Views: 1553

Answers (1)

eriktous
eriktous

Reputation: 6649

I think the manual is quite clear on this; at least for target-specific variables, but the way I understand it, it works the same for pattern-specific variables. It states (on target-specific variable values):

these values are only available within the context of a target's recipe

So they are not used in the patterns, but only in the recipes.

Upvotes: 1

Related Questions