Printing a percent sign
John Machin
sjmachin at lexicon.net
Tue Sep 26 09:02:44 EDT 2006
Fredrik Lundh wrote:
> John Machin wrote:
>
> > I'll take your word for it; it's been quite a while :-) *Something* in
> > the dim dark past worked like that
>
> makefiles?
Bingo! Actually, double bingo!!
>From the docs for GNU Make:
"""
Because dollar signs are used to start make variable references, if you
really want a dollar sign in a target or prerequisite you must write
two of them, `$$' (see How to Use Variables). If you have enabled
secondary expansion (see Secondary Expansion) and you want a literal
dollar sign in the prerequisites lise [sic], you must actually write
four dollar signs (`$$$$').
"""
Cheers,
John
More information about the Python-list
mailing list