]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Command line variables take precedence over global variables.
authorru <ru@FreeBSD.org>
Mon, 8 Sep 2003 08:23:29 +0000 (08:23 +0000)
committerru <ru@FreeBSD.org>
Mon, 8 Sep 2003 08:23:29 +0000 (08:23 +0000)
commitdd38dd539886745d07d31321152d8c9e788985d6
tree5f204ae0ad02e41d7bf33ee0d18bcb0392d53e57
parent9d24d6d9b75022d8c50d3a87accefdfdd83eca86
Command line variables take precedence over global variables.
Make this true in the .for loops too.  The following fragment,

FOO= foo bar

all:
.for f in ${FOO}
@echo ${f}
.endfor

when run as "make FOO=xxx" should print "xxx".  (OpenBSD had
this bug fixed for some time.)
usr.bin/make/for.c