Paul D. Smith wrote: > Some versions of make support a syntax like "$$@" in the prerequisites > list. The theory here is that the escaped "$" keeps make from > interpreting the variable when the makefile is read in, then instead it > is resolved when the dependencies are being processed later. > > While that's a nice theory, the structure of GNU make makes it > impractical at best. However, someone did send me a set of patches > which support this syntax (I'm not sure if they support $$* as well as > $$@). My patch only handle $$@, $$(@F) and $$(@D) (with substitution like $$(@F:.o=.c) and with pattern syntax). There are the only automatic variables known to work in the prerequisistes list with System V like make. > I haven't looked at them closely or decided whether to integrate > them yet. In a way it's a slippery slope; won't people then want things > like "$(suffix $$@)" next, and that can't work, etc. For people asking ``why $(suffix $$@) does not work'' answers that GNU Make handle automatic variables $$@, $$(@F) and $$(@D) to be compliant with System V make and no more. Note that I have create a new diff from CVS Tree, fetch it on my home page. -- Edouard G. Parmelan http://egp.free.fr