Sam Ravnborg <[EMAIL PROTECTED]> writes: > >From info make: > >>>>>>>>>>>>>>>>>>>>> > Rule Definition > --------------- > > A rule is always expanded the same way, regardless of the form: > > IMMEDIATE : IMMEDIATE ; DEFERRED > DEFERRED > > That is, the target and prerequisite sections are expanded > immediately, and the commands used to construct the target are always > deferred. > >>>>>>>>>>>>>>>>>>>>>>> > > Given the above information from info make I agree with Boris on this. > Both 'a' and 'arg' should be considered IMMEDIATE according to the snippet > included.
I am glad you agree with me ;-). To be precise, however, I must say that the snippet you cited does not apply here since it is talking about rule definition while I was talking about target specific variable definition. I don't think there is a part in the manual that specifies at what point target-specific variables get expanded so it is in some sense an implementation-defined behavior which, I must say, gets very tricky when it comes to target-specific variable inheritance, +=, etc. I think immediate evaluation is less surprising, though. -boris
signature.asc
Description: Digital signature
_______________________________________________ Bug-make mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/bug-make