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

Geoff Clare gwc at root.co.uk
Sat Mar 3 00:01:37 AEST 1990


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.

gwyn at brl.arpa (Doug Gwyn) writes:
|Did you try $$ ?

dce at Sony.COM (David Elliott) writes:
| 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 $.

Actually this IS a very simple question.  Just make sure the $ is quoted
when it is passed to the shell: abc.'$$'cf or 'abc.$$cf' does the trick.
-- 
Geoff Clare, UniSoft Limited, Saunderson House, Hayne Street, London EC1A 9HH
gwc at root.co.uk  (Dumb mailers: ...!uunet!root.co.uk!gwc)  Tel: +44-1-315-6600
                                         (from 6th May 1990): +44-71-315-6600



More information about the Comp.unix.wizards mailing list