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)


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to