dmake icon indicating copy to clipboard operation
dmake copied to clipboard

Bug 81777 - conditional macros for percent rules only work when set after the target definition

Open mohawk2 opened this issue 11 years ago • 1 comments

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.

changing the order to be

foobar_%:
       echo "value $(VALUE)"

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

works as expected.

See the URL for the mail to dev@tools for reference

mohawk2 avatar Aug 28 '14 03:08 mohawk2

https://issues.apache.org/ooo/show_bug.cgi?id=81777

mohawk2 avatar Aug 30 '14 01:08 mohawk2