Where should I insert “etags -R .” in makefile?

十年热恋 提交于 2019-12-25 02:44:10

问题


I am writing a compiler in Ocaml...

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.

Where do you usually put etags in makefile?


回答1:


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.



来源:https://stackoverflow.com/questions/8195412/where-should-i-insert-etags-r-in-makefile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!