您的位置:首页 > 其它

automake 出错处理

2012-09-13 17:25 120 查看
yu@MCW-xnYu:~/1temp/modify_makefile_for_bench/memcached-1.4.14-modify$ automake
doc/Makefile.am:12: `%'-style pattern rules are a GNU make extension
doc/Makefile.am:15: `%'-style pattern rules are a GNU make extension
doc/Makefile.am:18: `%'-style pattern rules are a GNU make extension
Makefile.am: required file `./INSTALL' not found
Makefile.am:   `automake --add-missing' can install `INSTALL'

Makefile.am: required file `./README' not found


在这里找到了解决方案http://sources.redhat.com/autobook/autobook/autobook_25.html

1 The `--add-missing' option copies some boilerplate files fromyour Automake installation into the current directory. Files such as`COPYING', which contain the GNU General Public License changeinfrequently, and so can be generated without
user intervention. Anumber of utility scripts are also installed--these are used by thegenerated`Makefile's, particularly by the
install
target.Notice that some required files are still missing. These are:

`NEWS'A record of user-visible changes to a package. The format is notstrict, but the changes to the most recent version should appear at thetop of the file.

2`README'The first place a user will look to get an overview for the purpose of a package, and perhaps special installation instructions.//说明文档得写出来

`AUTHORS'Lists the names, and usually mail addresses, of individuals who workedon the package.

`ChangeLog'The ChangeLog is an important file--it records the changes that are madeto a package. The format of this file is quite strict(see section5.5 Documentation and ChangeLogs).
For now, we'll do enough to placate Automake:

$ touch NEWS README AUTHORS ChangeLog
$ automake --add-missing

Automake has now produced a `Makefile.in'. At this point, you maywish to take a snapshot of this directory before we really let loosewith automatically generated files.

doc/Makefile.am:12: `%'-style pattern rules are a GNU make extension 还没有解决,找到解决方案再发上来


在http://www.cppblog.com/seahouse/archive/2011/01/18/137750.html找到了答案。

执行automake -a,出现:Makefile.am:29: `%'-style pattern rules are a GNU make extension

解决:执行automake -Wno-portability

参考:http://bugs.mysql.com/bug.php?id=30708

学习:http://www.gnu.org/software/automake/manual/automake.html
http://www.ibm.com/developerworks/cn/linux/l-makefile/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: