[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to echo a "$" to a file in Makefile.am
From: |
Eric Blake |
Subject: |
Re: How to echo a "$" to a file in Makefile.am |
Date: |
Fri, 02 Jul 2010 08:36:51 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Lightning/1.0b2pre Mnenhy/0.8.2 Thunderbird/3.0.5 |
On 07/02/2010 08:34 AM, Lyre wrote:
> In Makefile.am, I wrote an custom rule which append the program's path to
> the startup script. it looks like:
>
> echo $(datadir)/myprogram/program-name $OPTIONS >> /bin/program-name
>
> I want to get :
>
> /usr/share/myprogram/program-name $OPTIONS
>
> however, waht I accully get is :
>
> /usr/share/myprogram/program-name PTIONS
>
> I try to add an '\' before '$', but it doesn't works.
Automake borrows from make(1) syntax - to print $, use $$.
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature