0

我得到了一个使用 automake 的项目的源代码(我再也联系不到作者了)。我对系统不熟悉,我想做的就是重建项目。

我在项目中有以下文件:

Makefile.am
Makefile.in
Makefile

我已经修改了 Makefile.am 文件以适应我系统上的路径,但是我应该如何运行它来重新生成 Makefile。

注意:我目前对学习 automake 不感兴趣,只是重新编译这个项目。

4

2 回答 2

3

要引导 autoconf 构建系统,您可以使用

 $ autoreconf -fiv

它将根据需要调用 automake、aclocal、autoheaders 并生成configure脚本。之后你可以照常做

 $ ./configure && make && make install 

由 milos_ladni 提议

但是您肯定会需要configure.ac(或者configure.in如果它是一个较旧的项目),否则该项目只是缺少一些核心部分。

如果缺少这些,您可以直接尝试修改Makefile(祝您好运),但从头开始重新创建 configure.ac 可能更容易(并希望项目没有太多依赖项)

于 2013-04-11T21:30:11.860 回答
0

$ ./configure --prefix=some_directory

$ 制作

$ 进行安装

http://inti.sourceforge.net/tutorial/libinti/autotoolsproject.html#AP05

于 2013-04-11T07:43:09.737 回答