[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Initializing variables in rules
From: |
Greg Chicares |
Subject: |
Re: Initializing variables in rules |
Date: |
Mon, 27 Mar 2006 21:46:36 +0000 |
User-agent: |
Mozilla Thunderbird 1.0.2 (Windows/20050317) |
On 2006-3-22 18:13 UTC, Thierry Lam wrote:
> Is it possible to initialize a variable in a rule, for example:
>
> hello:
> name := world
Not that way--there, 'name := world' would be a shell command.
But you can use a target-specific variable:
name := unspecified
hello: name := world
hello:
@echo hello $(name)