[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: $(file) function bug or not?

From: David Boyce
Subject: Re: $(file) function bug or not?
Date: Tue, 28 Jan 2014 09:52:33 -0800

On Tue, Jan 28, 2014 at 7:31 AM, Gisle Vanem <address@hidden> wrote:
> "Paul Smith" <address@hidden> wrote:
>> Then make invokes the shell with the results of the expansion, which are
>> the rm and echo commands (and some empty strings which are ignored).
>> So, the rm is running AFTER the file is created, and deleting it.
> Thanks. That makes sense when I think about it.

I think the headline here is that $(file) is analogous to $(shell) in
that it's intended specifically for use _outside_ of recipes. If you
find yourself using either one in a recipe it's probably a sign you're
on the wrong track.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]