【问题标题】:Automake command from different directory来自不同目录的 Automake 命令
【发布时间】:2014-11-30 19:14:16
【问题描述】:

我有文件夹/文件 /sources/{configure.ac,Makefile.am,...}

如何执行 Automake 命令以便文件/文件夹 configureMakefileautom4te.cache不是在 /sources 而是在 /mydir 中生成的?

谢谢

【问题讨论】:

    标签: gnu readonly autotools autoconf automake


    【解决方案1】:

    运行configure 的目录将是放置生成文件的根目录。

    cd /mydir
    /sources/configure
    

    (虽然要小心;这不像在源代码树中运行 ./configure 那样普遍。在编写符合 GNU 的 configure 脚本时,您应该考虑到它,但尽管如此,有些软件包不会构建它方式。)

    【讨论】:

    • Automake 不会创建 configureMakefileautom4te.cache,因此在运行 automake 命令时无法影响它。
    猜你喜欢
    • 1970-01-01
    • 2014-06-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-11-05
    • 1970-01-01
    相关资源
    最近更新 更多