On 04/14/2015 08:24 AM, Arthur Schwarz wrote:
I am trying to echo:
    echo 'exit $status' >> file

from the Makefile generated by Makefile.am. What I get is:
    echo 'exit $status' >> file

in the Makefile, which is correct, but in execution (make check) I get
    exit tatus
Shell variables are referred to with double dollar sign in a Makefile:

echo exit $$status

hth,


--
Peter Johansson


Reply via email to