🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #937

Re: make bug

#937
From: Leo de Wit
Date: Sun, 01 Jan 1989 08:20
21 lines
1088 bytes
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.
Technical Details
Message-ID: <904@philmds.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!unmvax!ncar!gatech!hubcap!ncrcae!ncrlnk!uunet!mcvax!hp4nl!philmds!leo
References: <502@Aragorn.dde.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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