help-make
[Top][All Lists]
Advanced

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

Re: Named parameters in make?


From: grischka
Subject: Re: Named parameters in make?
Date: Mon, 13 Jun 2011 17:43:30 +0200
User-agent: Thunderbird 2.0.0.24 (Windows/20100228)

Paul Smith wrote:
On Sat, 2011-06-11 at 01:33 +0200, grischka wrote:
For example one can write:

    all_rule = all : ; echo $$@
    $(all_rule)

Yes but there are other examples that cannot be reproduced using this
method.  Any sequence that requires more than one line cannot be
implemented using this syntax.

Yes but why?  What is specifically wrong with the example below
other than that it works not as expected exactly?  The user may
find eventually that using 'eval' does the trick but she does not
understand why it is necessary.

    define all_rule
    all :
            echo $$@
    endef

    $(all_rule)




reply via email to

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