Re: [fbsd] Re: Puzzling variables behaviour in make(1)

2006-11-05 Thread Jeremie Le Hen
Hi Ruslan, thank you for your swiftness. On Mon, Nov 06, 2006 at 12:14:13AM +0300, Ruslan Ermilov wrote: > Command-line variables are of the highest precedence. > > %%% > Index: parse.c > === > RCS file: /home/ncvs/src/usr.bin/make/

Re: Puzzling variables behaviour in make(1)

2006-11-05 Thread Ruslan Ermilov
On Sun, Nov 05, 2006 at 09:04:47PM +0100, Jeremie Le Hen wrote: > Hello, > > I wrote the following piece of Makefile: > > % .warning "VAR contains: ${VAR}" > % > % VAR_BACKUP:= ${VAR} > % VAR:= value2 > % > % .if ${VAR} == "value2" > % .warning "VAR is overwritable: ${VAR}" > % .else > % .warnin

Puzzling variables behaviour in make(1)

2006-11-05 Thread Jeremie Le Hen
Hello, I wrote the following piece of Makefile: % .warning "VAR contains: ${VAR}" % % VAR_BACKUP:= ${VAR} % VAR:= value2 % % .if ${VAR} == "value2" % .warning "VAR is overwritable: ${VAR}" % .else % .warning "VAR is NOT overwritable: ${VAR}" % .endif % % VAR:= ${VAR_BACKUP} % % all: If I defin