现有的 Java 项目使用 makefile(反过来使用 ANT)。
我想使用 IntelliJ IDEA 处理这个项目。但是,没有 IntelliJ 特定文件,例如项目文件,应 checkin 版本控制。
如何配置项目,以便:
Build > Make Project
这样它要么什么都不做,要么运行一些 make 目标(在 makefile 中)。我不想编译成 ./bin
的标准行为因为这可能会与 makefile 冲突。 最佳答案
compilation database feature于 2018 年上市。
帮助页面说:
Make-based projects: The compiledb-generator tool creates compilation databases for make-based build systems.
Bear and intercept-build tools: Bear and intercept-build from scan-build are the tools to help you get a compilation database by intercepting compiler calls during the build.
(在基于 make 的项目上也承担和拦截构建工作)
关于intellij-idea - 将 IntelliJ IDEA 用于使用 Makefile 的项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36403285/