Hi ',

I have a question about conditinal macros an %-rules. I'm not sure
whether I understand the manpage and the functionality correctly,
so here's a small testcase:

foobar ?= VALUE:="plain-rule"
foobar_% ?= VALUE:="percent-rule"

foobar:
        echo "value $(VALUE)"

foobar_%:
        echo "value $(VALUE)"


running dmake foobar prints "value plain-rule" - but when running dmake
foobar_abc it prints "value " - so the Macro VALUE is not evaluated at
all.

The manpage reads:
 If  a  %-meta rule target has associated conditional macro assignments,
 and the rule is chosen by the inference algorithm then the  conditional
 macro assignments are inferred together with the associated recipe.

That makes me believve it should be possible to use them, OTOH I didn't 
fully understand that sentence.

Maybe somebody could explain how it is supposed to work in some easy
terms...

ciao
Christian
-- 
NP: Samael - Mask Of The Red Death

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to