make - define multiple variables in the same eval call
问题 I would like to use make 's eval function to define several (dynamically-named) variables inside a foreach , but I can't get eval to do this job. I tried something like this: $(eval \ var1 = val1 \ var2 = val2 \ ) It doesn't work: var1 gets defined as val1 var2 = val2 and var2 is not defined. It makes sense, because I put \ at the end of the second line. But if I remove it, the eval call will never be terminated. I tried different things to have this \ only seen by eval , but nothing did the