Skip to content

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

@mohawk2

Description

@mohawk2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions