On Tue, Jan 28, 2014 at 7:31 AM, Gisle Vanem <gva...@yahoo.no> wrote: > "Paul Smith" <psm...@gnu.org> 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. David _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make