[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to add an embedded Awk script in a make file
From: |
Greg Chicares |
Subject: |
Re: How to add an embedded Awk script in a make file |
Date: |
Fri, 08 Sep 2006 16:22:47 +0000 |
User-agent: |
Thunderbird 1.5.0.4 (Windows/20060516) |
On 2006-9-8 16:03 UTC, Ralph Blach wrote:
> I want to put an embedded awk script in a makefile to remove an unwanted
> comile parameter.
> So I want to echo $(CFLAGS) | awk { print $1 } and have the awk
> postion parameter expanded correctly by
> awk. However, how do I get an unexpaned $ passed to awk script?
To get a dollar sign into a command, you have to double it.
Try this:
echo $(CFLAGS) | awk { print $$1 }