Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when dealing with multiline variable. #88

Open
wpc009 opened this issue Sep 5, 2016 · 2 comments
Open

Issue when dealing with multiline variable. #88

wpc009 opened this issue Sep 5, 2016 · 2 comments

Comments

@wpc009
Copy link

wpc009 commented Sep 5, 2016

For the following line, ninja report error 'inline_value1' doesn't match the target pattern.

VAR := initvalue

VAR += \
    some_value1 \
   some_value2 \

VAR += inline_value1 inline_value2

Mixing multiline with single line will cause this issue. And if I put single line ahead, the problem gone.

@wpc009
Copy link
Author

wpc009 commented Sep 5, 2016

Sorry, may be this isn't a common issue. I found this in PRODUCT_COPY_FILES variable in Android build system.

@colincross
Copy link
Collaborator

I can't reproduce this issue:

VAR := initvalue

VAR += \
    some_value1 \
   some_value2 \

VAR += inline_value1 inline_value2

.PHONY: test
test:
    echo $(VAR)
$ make -f test.mk
echo initvalue some_value1 some_value2  inline_value1 inline_value2
initvalue some_value1 some_value2 inline_value1 inline_value2

$ ckati -f test.mk
echo initvalue some_value1 some_value2  inline_value1 inline_value2
initvalue some_value1 some_value2 inline_value1 inline_value2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants