无法运行Makefile.am,我该怎么办? [英] Can't run Makefile.am, what should I do?

查看:136
本文介绍了无法运行Makefile.am,我该怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个C项目可以在Linux上编译和运行.这是一个很大的项目,包含许多子目录.父目录中有文件 Makefile.am Makefile.in .

I got a C project to compile and run in Linux. It is a very big project with many subdirectories. Inside the parent directory there are files Makefile.am and Makefile.in.

我尝试运行 make -f Makefile.am ,并出现以下错误:

I tried running make -f Makefile.am, and got the following error:

make: Nothing to be done for `Makefile.am'.

是什么意思?我该如何完成任务?

What does it mean? How do I accomplish my task?

推荐答案

这些文件与 Autotools 套件一起使用.使用 automake 将Makefile.am文件编译为Makefile.

These files are used with the Autotools suite. Makefile.am files are compiled to Makefiles using automake.

看看目录中是否有 configure 脚本.如果有,则键入:

Have a look to see if there is a configure script in the directory. If there is, then type:

./configure

如果没有,请运行:

autoreconf

在目录中,该目录应创建 configure 脚本(您需要安装Autotools套件才能运行此脚本).

in the directory, which should create the configure script (you will need to have the Autotools suite installed to run this).

在那之后,您应该具有一个可以运行的 configure 脚本.

After that, you should have a configure script that you can run.

配置完成后,您应该在目录中具有普通的Makefile,并且可以运行

After the configure is complete, you should have a normal Makefile in the directory, and will be able to run

make

这篇关于无法运行Makefile.am,我该怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆