On Tue,  2 Jun 2009 18:38:49 -0400 (EDT) [email protected] (Norman Ramsey) 
wrote:
> On Glenn Fowler's web page, I read with interest about the existence
> of mamake and the use of transducers to convert between nmake Makefiles
> and GNU Makefiles.  Are these tools still current?  Does a transducer
> exist for Andrew Hume's 'mk' tool?  If not, could anyone advise me
> how to write one?

makefile conversion (or analysis) via MAM first requires an instrumented make
nmake and an ast-ized gnu make have been instrumented to emit MAM

on the back end are the mam* commands
the most visible to ast builders is mamake(1) which is used
to bootstrap build nmake (and ksh93) from source on systems that don't have 
nmake

the mamfiles in the ast source tarballs are generated using the nmake --mam 
option

the mam* commands that generate old make makefiles have (significant) bitrot
mk has not been instrumented to emit MAM

instrumenting is the hardest part because it requires knowlege
of the inner workings of a make implementation

so do what do you want to convert mk to/from?

_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to