List Info

Thread: conditional variable assignment




conditional variable assignment
user name
2007-06-07 10:23:32

I have encountered some GNU make code with the following construction:

target_list: variable_name=variable_value

The intent appears to be the "conditional macro"; idea that I have seen elsewhere, such that a rule which executes a target from this list will execute its commands in an environment where variable_name has the indicated value, even though that value might be different for targets not on the list.

However, I have found no documentation for the above syntax.  Is this a supported construction?

Thanks,
Don Haire

Re: conditional variable assignment
country flaguser name
United States
2007-06-07 13:20:56
On 2007-06-07 15:23Z, Haire, Don wrote:
> I have encountered some GNU make code with the
following construction:
> 
> target_list: variable_name=variable_value
[...]
> However, I have found no documentation for the above
syntax.  Is this a
> supported construction?

It's in the make-3.81 manual, under:
6.10 Target-specific Variable Values


_______________________________________________
Help-make mailing list
Help-makegnu.org
http:
//lists.gnu.org/mailman/listinfo/help-make

RE: conditional variable assignment
user name
2007-06-07 14:10:12
Got it.  Thanks, Greg. 

-----Original Message-----
From: Greg Chicares [mailto:chicarescox.net] 
Sent: Thursday, June 07, 2007 2:21 PM
To: Haire, Don
Cc: help-makegnu.org
Subject: Re: conditional variable assignment

On 2007-06-07 15:23Z, Haire, Don wrote:
> I have encountered some GNU make code with the
following construction:
> 
> target_list: variable_name=variable_value
[...]
> However, I have found no documentation for the above
syntax.  Is this
a
> supported construction?

It's in the make-3.81 manual, under:
6.10 Target-specific Variable Values


_______________________________________________
Help-make mailing list
Help-makegnu.org
http:
//lists.gnu.org/mailman/listinfo/help-make

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )