Go AST for Makefiles?

agolangf · · 458 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Is there a Go parser lib for Makefile&#39;s? Or even a Go wrapper lib for a C Makefile parser?</p> <hr/>**评论:**<br/><br/>raff99: <pre><p>Found an implementation in python: <a href="https://github.com/mozilla/pymake" rel="nofollow">https://github.com/mozilla/pymake</a></p> <p>I am wondering how hard would it be to call it from go or port it from go.</p></pre>natefinch: <pre><p>Not as far as I can tell, but if you want go + make, maybe you want Makefiles written in Go? <a href="https://github.com/magefile/mage" rel="nofollow">https://github.com/magefile/mage</a></p></pre>xlab_is: <pre><p>And the main problem is that you have a ton of legacy Makefiles, that you&#39;ll need to convert into Mage. Or the whole approach will be useless.</p></pre>Rafikithewd: <pre><p>mmake is backwards comparable with make </p> <p>Github.com/tj/mmake </p> <p>Actually tj might have a makefile parser in that repo too</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

458 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传