Xref: utzoo comp.bugs.sys5:737 comp.unix.wizards:13875 Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!haven!uflorida!novavax!twwells!bill From: bill@twwells.uucp (T. William Wells) Newsgroups: comp.bugs.sys5,comp.unix.wizards Subject: Re: make bug Summary: yes Message-ID: <291@twwells.uucp> Date: 5 Jan 89 12:19:15 GMT References: <502@Aragorn.dde.uucp> Reply-To: bill@twwells.UUCP (T. William Wells) Organization: None, Ft. Lauderdale Lines: 24 Expires: Sender: Followup-To: Distribution: Keywords: In article <502@Aragorn.dde.uucp> ct@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