[m-dev.] Problematic Mmake dependencies

Fergus Henderson fjh at cs.mu.OZ.AU
Mon Jul 5 17:17:37 AEST 1999


On 05-Jul-1999, Warwick Harvey <wharvey at cs.monash.edu.au> wrote:
> GNU Make, in its infinite 
> wisdom, does not define the variable `$@' in the dependency list of a rule 
> --- only in the body.  So this still isn't going to interact gracefully with 
> per-program/file variable definitions, but maybe that can be hacked around.

You could try setting `$@' manually, using `$(foreach @, ..., ...)'.
That is, you could replace

	foo : $(SOMEVAR)

with

	foo : $(foreach @,foo,$(SOMEVAR))

I haven't tested this...

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list