Make:defining macros with filenames that have '$' in them

David Elliott dce at smsc.sony.com
Sat Feb 24 04:45:37 AEST 1990


In article <12219 at smoke.BRL.MIL> gwyn at brl.arpa (Doug Gwyn) writes:
>In article <27177 at cup.portal.com> DeadHead at cup.portal.com (Bruce M Ong) writes:
>>I have to include a file with '$' in its name (i.e. abc.$cf) in
>>a macro definition in Make.
>
>Did you try $$ ?

Did you?

>Why are you guys posting this kind of question here instead of
>comp.unix.questions, which was set up expressly for them?

While I agree in principle, this isn't a simple question.  After all,
once Make tries to do anything with the filename, it uses the shell
('$' is in the list of characters that force the use of sh), which
will eat the $.

So, it may take a wizard to figure out the correct answer (assuming
there is a correct answer other than "Don't use $ in filenames").

-- 
David Elliott
dce at smsc.sony.com | ...!{uunet,mips}!sonyusa!dce
(408)944-4073
"...it becomes natural, like a third sense." -- Homer Simpson



More information about the Comp.unix.wizards mailing list