help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Variables within Pattern Rules


From: John Graham-Cumming
Subject: Re: Variables within Pattern Rules
Date: Wed, 05 Jan 2005 08:50:00 -0500

On Wed, 2005-01-05 at 06:25, Barry Clarkson wrote:
> DEF=`echo $(basename $<) | tr '[a-z]' '[A-Z]'`_DEFS

You can't do that in GNU Make.  There is no backtick operator.  What you
want is $(shell):

    DEF = $(shell echo $(basename $<) | tr [a-z] [A-Z])_DEFS

John.
-- 
John Graham-Cumming

Home: http://www.jgc.org/
Work: http://www.electric-cloud.com/
POPFile: http://getpopfile.org/






reply via email to

[Prev in Thread] Current Thread [Next in Thread]