来自不同目录的Automake命令

时间:2014-10-06 13:49:54

标签: gnu readonly autotools autoconf automake

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

如何执行 Automake 命令,以便文件/文件夹配置 Makefile autom4te.cache 是不是在 / sources 中生成,而是在 / mydir 中生成?

由于

1 个答案:

答案 0 :(得分:0)

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

cd /mydir
/sources/configure

(虽然要注意;这不像在源代码树中运行./configure那么常见。在编写符合GNU的configure脚本时,你应该考虑到它,但是有些包不会这样建立。)