Hi Gregory,

On Tue, Jun 24, 2014 at 9:07 PM, Gregory Szorc <[email protected]> wrote:
>
> You should also keep in mind that make is not a static language that can be
> parsed and turned into static rules. Variables and targets change as make is
> executing. That means any kind of parsing must preserve variable references
> as opposed to expanding them at parse time.
>
> You can use pymake to parse the general structure of make files (rules,
> variable assignment, functions, etc). But actually evaluating all the "$" is
> very hard.

Thank you for the heads-up! I do have respect for Make's evaluation
trickery, though I'm probably still underestimating it :-/

But pymake does this correctly already, right? Or is there not a way
to inspect the evaluated results?

> If you read my old blog posts (http://gregoryszorc.com/) I go into some
> details of this. Search for "pymake." I have some code on GitHub that
> attempted to add a parsing-friendly "data" API to pymake [1] [2]. I can't
> remember what all I did, but I know there is an attempt at a better parsing
> API there somewhere.

Excellent, thanks!

- Kim
_______________________________________________
dev-builds mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-builds

Reply via email to