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

Function $(switch ...) cannot be spread out over several lines #102

Open
cspiel opened this issue Apr 16, 2018 · 0 comments
Open

Function $(switch ...) cannot be spread out over several lines #102

cspiel opened this issue Apr 16, 2018 · 0 comments

Comments

@cspiel
Copy link
Collaborator

cspiel commented Apr 16, 2018

The GNUMake-syntax function $(switch ...) cannot be spread out over several lines
with line-continuation operators.

en = green
se = $(switch $(en), \
       black, svart, \
       red, röd, \
       green, grön, \
       blue, blå, \
       white, vit)

# Bug: $(se) is empty; neither error, nor warning from omake(1).
println($"spread-out function: '$(en)', en -> '$(se)', se")

The author is well aware of the OMake-syntax (multi-line) version of the
switch function, but does not like to be surprised by his make
system. IMHO, either $(switch ...) should complain about the line
continuations or work as the multi-line version.

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

1 participant