Xref: utzoo comp.bugs.sys5:729 comp.unix.wizards:13794 Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!unmvax!ncar!gatech!hubcap!ncrcae!ncrlnk!uunet!mcvax!hp4nl!philmds!leo From: leo@philmds.UUCP (Leo de Wit) Newsgroups: comp.bugs.sys5,comp.unix.wizards Subject: Re: make bug Summary: expected behaviour Message-ID: <904@philmds.UUCP> Date: 1 Jan 89 08:20:41 GMT References: <502@Aragorn.dde.uucp> Reply-To: leo@philmds.UUCP (Leo de Wit) Organization: Philips I&E DTS Eindhoven Lines: 21 In article <502@Aragorn.dde.uucp> ct@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.