make bug

Stephen J. Friedl friedl at vsi.COM
Mon Jan 2 15:03:03 AEST 1989


In article <904 at philmds.UUCP>, leo at philmds.UUCP (Leo de Wit) writes:
> 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.

     New versions of make (augmake?) *do* allow this kind of
substitution.  You can do:

SRC	= $(OBJS:.o=.c)

and it effectively does 's/\.o/.c/g' on each word in ${OBJS}.

     It's very handy...
     Steve

-- 
Stephen J. Friedl        3B2-kind-of-guy            friedl at vsi.com
V-Systems, Inc.        I speak for me only      attmail!vsi!friedl
Santa Ana, CA  USA       +1 714 545 6442    {backbones}!vsi!friedl
-------Nancy Reagan on Usenix in San Diego: "Just say *go*"-------



More information about the Comp.unix.wizards mailing list