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.
