本文介绍了我应该在哪里插入"etags -R".在makefile中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用Ocaml编写编译器...

I am writing a compiler in Ocaml...

我只是想知道在哪个阶段生成tags最方便...我猜应该不应该在编译所有文件之后进行,因为编译可能会失败,并且仍然有意义获得tags.

I am just wondering at which stage it is most convenient to generate the tags... I guess it should not be after the compilation of all files, because it is possible that the compilation fails, and it still makes sense to get tags.

通常将etags放在makefile中的什么位置?

Where do you usually put etags in makefile?

推荐答案

我将标记生成放在单独的目标上.当我想生成可执行文件时,我不在乎标签.在处理源代码时,即使我知道我的代码现在无法编译,我仍可能希望重新生成标签.

I put tag generation on a separate target. When I want to generate an executable, I don't care about tags. When I'm working on the source code, I might want to regenerate the tags even if I know my code won't compile right now.

这篇关于我应该在哪里插入"etags -R".在makefile中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 03:58