当前位置: 技术问答>linux和unix
请教关于AUTOMAKE问题?
来源: 互联网 发布时间:2015-04-28
本文导语: 我已经编辑生成了Makefile.am文件,为什么执行automake还报如下找不到文件: $automake --add-missing -c configure.in: installing `./install-sh' configure.in: installing `./mkinstalldirs' configure.in: installing `./missing' automake: no `Makefile.am' fo...
我已经编辑生成了Makefile.am文件,为什么执行automake还报如下找不到文件:
$automake --add-missing -c
configure.in: installing `./install-sh'
configure.in: installing `./mkinstalldirs'
configure.in: installing `./missing'
automake: no `Makefile.am' found or specified
======================================================
Makefile.am 文件内容如下:
AUTOMAKE_OPTIONS= foreign
bin_PROGRAMS= hello
hello_SOURCES= tt.c
======================================================
目录文件列表:
aclocal.m4 configure.in Makefile.am mkinstalldirs
autom4te-2.53.cache configure.scan missing tt
configure install-sh MK.am tt.c
$automake --add-missing -c
configure.in: installing `./install-sh'
configure.in: installing `./mkinstalldirs'
configure.in: installing `./missing'
automake: no `Makefile.am' found or specified
======================================================
Makefile.am 文件内容如下:
AUTOMAKE_OPTIONS= foreign
bin_PROGRAMS= hello
hello_SOURCES= tt.c
======================================================
目录文件列表:
aclocal.m4 configure.in Makefile.am mkinstalldirs
autom4te-2.53.cache configure.scan missing tt
configure install-sh MK.am tt.c
|
zhong1982(六斛四斗)说的对,不过那是废弃的方法。楼主的错误在于注释了AC_CONFIG_FILES([]),应该把这句改为:
AC_CONFIG_FILES(Makefile)
AC_CONFIG_FILES(Makefile)
|
最后的AC_OUTPUT改为AC_OUTPUT(Makefile)试一下!