[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Target specific and automatic variables
From: |
Pierre Habraken |
Subject: |
Re: Target specific and automatic variables |
Date: |
Fri, 18 Apr 2003 14:33:09 +0200 |
"Paul D. Smith" wrote:
>
> %% Pierre Habraken <address@hidden> writes:
>
> ph> foo: FOOVAR = bla bla
> ph> foo: $(FOOVAR)
> ph> echo $^
>
> ph> I'd expect that running this makefile should produce:
>
> ph> echo bla bla
> ph> bla bla
>
> ph> Instead it produces:
>
> ph> echo
>
> ph> Could someone tell me what I missed ?
>
> >From the GNU make manual, section "Target-Specific Variable Values":
>
> > As with automatic variables, these values are only available within
> > the context of a target's command script (and in other
> > target-specific assignments).
This is clearly stated at the beginning of the section but I missed
it ! Sorry for the trouble...
Pierre
--
________________________________________________________________________
Pierre HABRAKEN - mailto:address@hidden
Tél: 04 76 82 72 83 - Fax: 04 76 82 72 87
IMAG-LSR BP72 38402 SAINT MARTIN D'HERES Cedex
________________________________________________________________________