[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to escape $@
From: |
Paul D. Smith |
Subject: |
Re: how to escape $@ |
Date: |
Fri, 11 Apr 2003 12:56:13 -0400 |
%% Dan DeJohn <address@hidden> writes:
dd> One of the rules in my makefile builds another makefile. I need to get
dd> the string
dd> " touch $@"
dd> into the file that the commands build.
You can't add a TAB character using echo, or at least it's pretty
difficult.
The proper escaping of $@ is \$$@, or using quoting like '$$@'.
You might try this:
echo ' touch $$@'
where the first character is a TAB.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist