>> On Sun, 9 Sep 2001 16:18:15 -0400, Paul D Smith <[EMAIL PROTECTED]> wrote:
P> In this case, what is basename of "%"? Just "%" itself, so you end up
P> with this:
P> foo.xx: %: %
Thank you for the clear explanation.
It is not the first time you have provided one for me!
%% Matt Swift <[EMAIL PROTECTED]> writes:
ms> I understand the explanation, but I do not understand why, if it
ms> applies to the $(basename) function, it does not apply to the
ms> $(addsuffix) function. If addsuffix behaved like basename, then
ms> the dependency list for the target foo.
I understand the explanation, but I do not understand why, if it applies to
the $(basename) function, it does not apply to the $(addsuffix) function.
If addsuffix behaved like basename, then the dependency list for the target
foo.yy would be ".zz" instead of "foo.yy.zz" (which it is by experiment
%% Manoj Srivastava <[EMAIL PROTECTED]> writes:
ms> The following sample makefile should not produce the error it does
ms> produce (output follows the makefile). The $(basename ...)
ms> function should work when it appears in the prerequisites section
ms> of a rule, but it does nothing.