dmake
dmake copied to clipboard
Bug 81777 - conditional macros for percent rules only work when set after the target definition
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
https://issues.apache.org/ooo/show_bug.cgi?id=81777