Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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