make bug

Leo de Wit leo at philmds.UUCP
Sun Jan 1 18:20:41 AEST 1989


In article <502 at Aragorn.dde.uucp> ct at dde.uucp (Claus Tondering) writes:
    [first example omitted ...]
|Now, consider the following makefile:
|
|ALPHA = foo
|BETA  = $(ALPHA) bar
|
|all:
|	echo $(BETA:bar=hello)
|
|Running make with this makefile will result in the execution of the
|command "echo $(ALPHA) hello", which is certainly not what I would
|expect.
|
|Why is ALPHA not substituted in the last example? Bug or feature?

What would you expect? "$(BETA:bar=hello)" is certainly not Make syntax.
Make doesn't know about sh or csh variable substitution, if that was
your intention.

						 Leo.



More information about the Comp.bugs.sys5 mailing list