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 }
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make