3 ms·
> I do think it would be interesting to implement a Make -> Ninja compiler; the devil is in extracting all the correct dependencies. See my other comments for
by adekok 12y ago
> I do think it would be interesting to implement a Make -> Ninja compiler; the devil is in extracting all the correct dependencies.
See my other comments for a set of GNU Make scripts I've been using:
https://github.com/alandekok/boilermake https://github.com/alandekok/boilermake
The craziest thing I did was realize that the rules were being evaluated recursively, and calling "info" (i.e. "print) was just as easy as calling "eval".
30 minutes later, I had:
$ make bsd.mak
It would spit out a 6000 line BSD-style Makefile. Just variable declarations (organized and commented!) along with rules.
It's probably not hard to change the framework to spit out ninja files. It's just text.
I'll go soak my head in cold water now.