make bug

T. William Wells bill at twwells.uucp
Thu Jan 5 22:19:15 AEST 1989


In article <502 at Aragorn.dde.uucp> ct at dde.uucp (Claus Tondering) writes:
: 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?

Brain damage. Someone is doing the substitution before the expansion.
This is clearly wrong. Not only that, but it works on my Sun and I
believe that it worked on the VAX we used to have, the latter
definitely not Berkeley based. However, it definitely fails on my
Microport system; I got bit by this just the other day. I know where
I can get a PD make; if it is any good I'm going to toss the one I
have. Grrrrr......

---
Bill
{ uunet!proxftl | novavax } !twwells!bill



More information about the Comp.bugs.sys5 mailing list