Re:Mk: A Successor to Make [pdf]
by throwawaaarrgh on Sunday July 16, 2023 @01:06PM
(#36749220)
Actually it doesn't really solve the $$foo problem. If your make target has an inline shell script with a variable reference, is it referring to a make variable or a shell variable? Is it set in make? If not, what will make do with that variable reference in the inline shell - nothing? Make it an empty string? Keep the literal '$foo' string? And what if both make and inline script have the variable set but they need to be different?
[ Parent
| on HN ]
Re:Mk: A Successor to Make [pdf]
by mananaysiempre on Sunday July 16, 2023 @02:17PM
(#36749972)
It does solve the $$foo problem in that mk just doesn’t do any variable substitution, at all. For each recipe, it adds the values of mk variables it has computed to its initial environment, then execs a shell, passing it the entire recipe verbatim.