Re: order of variables and rules in output

2010-10-03 Thread Ralf Wildenhues
Hi Ben, a while ago on the automake list: * Ben Pfaff wrote on Wed, Aug 25, 2010 at 07:22:58PM CEST: In a Makefile, the relative order of variable and rule definitions matters, because variables used in targets are expanded when rules are read. If a variable is used in a target before the

Re: order of variables and rules in output

2010-10-03 Thread Ralf Wildenhues
Hi Ben, a while ago on the automake list: * Ben Pfaff wrote on Wed, Aug 25, 2010 at 07:22:58PM CEST: In a Makefile, the relative order of variable and rule definitions matters, because variables used in targets are expanded when rules are read. If a variable is used in a target before the

order of variables and rules in output

2010-08-25 Thread Ben Pfaff
In a Makefile, the relative order of variable and rule definitions matters, because variables used in targets are expanded when rules are read. If a variable is used in a target before the variable is changed, the variable's former expansion is used in the target, not the latter expansion.

Re: order of variables and rules in output

2010-08-25 Thread Ralf Wildenhues
Hi Ben, * Ben Pfaff wrote on Wed, Aug 25, 2010 at 07:22:58PM CEST: Current Automake appears to reorder the Makefile.am so that all variable assignments precede all rules, so in a Makefile.am the relative order of variable and rule definitions does not matter. Right. Is this behavior