help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Just a quick question


From: red floyd
Subject: Re: Just a quick question
Date: Wed, 02 Jan 2008 17:38:34 GMT
User-agent: Thunderbird 2.0.0.9 (Windows/20071031)

parag_paul@hotmail.com wrote:
hi All

I saw that one of the for loops in a make file looks like this


   @for dir in ${DIRS}; do \
        echo making for directory $${dir}; \
        make -C $${dir}


Why is there two $$ here

Because you want the $ to be interpreted by the shell, not the makefile.
If you used ${dir}, the makefile would have interpreted it. The first $ escapes the second $.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]