[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
clearer Call Function example
From: |
積丹尼 Dan Jacobson |
Subject: |
clearer Call Function example |
Date: |
Sat, 10 Apr 2021 07:04:36 +0800 |
In (info "(make) Call Function")
One would assume
reverse = $(2) $(1)
foo = $(call reverse,a,b)
should be
reverse = $(2) $(1)
foo = $(call $(reverse),a,b)
but make does that $ stuff for us automatically,
which makes us think maybe it is also doing the same for a and b.
But it's not.
Therefore perhaps use:
reverse = $(2) $(1)
a=x
b=y
foo = $(call reverse,$a,$b)...
to pound this fact home.
Yes even if in the following example on the page finally makes this clearer.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- clearer Call Function example,
積丹尼 Dan Jacobson <=