On Mon, 13 Feb 2006, Greg Chicares wrote:

> On 2006-2-13 13:50 UTC, Robert P. J. Day wrote:
> >
> > all:
> >     # $(warning whatever)
> >
> >   that command above has a leading tab so, according to the docs, it
> > should be treated as a shell command.  but it's clearly the make
> > warning built-in and, even with that "#", it's processed by make as a
> > warning.  why?
>
> The manual says this of $(error):
> | Note that the error is generated whenever this function is evaluated.
> | So, if you put it inside a command script or on the right side of a
> | recursive variable assignment, it won't be evaluated until later.
> | The text will be expanded before the error is generated.
> and $(warning) works the same way.
>
> Make needs to pass the command
>   # $(warning whatever)
> to the shell; when it does so, it evaluates '$(warning whatever)'.

ah, now i get it.  thanks.

rday


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

Reply via email to