[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

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:            
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

reply via email to

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