intellij-idea - 将 IntelliJ IDEA 用于使用 Makefile 的项目

标签 intellij-idea makefile ant

现有的 Java 项目使用 makefile(反过来使用 ANT)。

我想使用 IntelliJ IDEA 处理这个项目。但是,没有 IntelliJ 特定文件,例如项目文件,应 checkin 版本控制。

如何配置项目,以便:

  • Makefile 可以从 IntelliJ IDEA 内部运行。
  • 更改 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/

    相关文章:

    intellij-idea - Android Studio在启动时崩溃

    intellij-idea - 尝试将文件移动到项目中时 Intellij IDEA 卡住

    makefile - 有什么办法可以使命令回显

    Java 8 Javascript 引擎向后兼容

    java - 在哪里可以找到 org.apache.axis2.wsdl.java2wsdl 类

    java - Ant 无法删除 Windows 上的某些文件

    java - thymeleaf (th :action) not working when rendering long html

    java - 为 mybatis 定义基本映射器时未选中覆盖?

    android - 如何计算 GNU make 的 -jN 参数以及它如何影响我的 android 构建?

    c++ - 为具有不同标志的目标文件重构 Makefile