3 ms·
You cannot even properly escape a left parenthesis, for crying out loud! So if you invoke a tool that expects some arguments wrapped in parentheses, you need t
by Tomte 9y ago
You cannot even properly escape a left parenthesis, for crying out loud!
So if you invoke a tool that expects some arguments wrapped in parentheses, you need to do stuff like
LEFTPAREN:=(
RIGHTPAREN:=)
$(addprefix $(LEFTPAREN), $(addsuffix $(RIGHTPAREN), $(PARAMS)))
(RIGHTPAREN isn't strictly needed, but I introduced it to have the symmetry with LEFTPAREN, which is absolutely necessary)
- dozzie 9y ago> So if you invoke a tool that expects some arguments wrapped in parentheses, you need to do stuff like ...like $(patsubst)? $(patsubst %,(%),$(PARAMS)) Though the part about quoting still stands. And I couldn't be bothered with checking whether the $(patsubst) is a function defined in SUS or is GNU specific.