version 1.9, 2007/09/16 09:46:14 |
version 1.10, 2007/09/17 09:28:36 |
|
|
case '?': |
case '?': |
if (type & (VAR_OPT|VAR_APPEND)) |
if (type & (VAR_OPT|VAR_APPEND)) |
type = VAR_INVALID; |
type = VAR_INVALID; |
else |
else |
type |= VAR_OPT; |
type |= VAR_OPT; |
break; |
break; |
|
|
case ':': |
case ':': |
if (FEATURES(FEATURE_SUNSHCMD) && |
if (FEATURES(FEATURE_SUNSHCMD) && |
strncmp(arg, "sh", 2) == 0) { |
strncmp(arg, "sh", 2) == 0) { |
type = VAR_SHELL; |
type = VAR_SHELL; |
arg += 2; |
arg += 2; |
|
|
/* |
/* |
* Allow variables in the old value to be undefined, but leave |
* Allow variables in the old value to be undefined, but leave |
* their invocation alone -- this is done by forcing |
* their invocation alone -- this is done by forcing |
* errorIsOkay to be false. |
* errorIsOkay to be false. |
* XXX: This can cause recursive variables, but that's not |
* XXX: This can cause recursive variables, but that's not |
* hard to do, and this allows someone to do something like |
* hard to do, and this allows someone to do something like |
* |
* |
* CFLAGS = $(.INCLUDES) |
* CFLAGS = $(.INCLUDES) |
* CFLAGS := -I.. $(CFLAGS) |
* CFLAGS := -I.. $(CFLAGS) |
* |
* |
* And not get an error. |
* And not get an error. |