1. 安装工具

yum install  -y automake
 
2. 基本项目
a. 项目参考结构

├── AUTHORS
├── COPYING
├── ChangeLog
├── Makefile.am
├── NEWS
├── README
├── README.md
├── a.out
├── configure.ac
├── main
└── main.c b. configure.ac Makefile.am main.c configure.ac Makefile.am configure.ac AC_INIT([main],[0.0.1])
AC_CONFIG_SRCDIR("main.c")
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([1.11 -Wall -Werror])
AC_CONFIG_FILES([Makefile])
AC_PROG_CC
AC_OUTPUT Makefile.am bin_PROGRAMS = main
main_SOURCES =main.c main.c #include <stdio.h> int main (){ printf("%s","appdemo");
return 0; } c. 生成文档 autoreconf -i 提示的错误信息如下: Makefile.am: error: required file './NEWS' not found
Makefile.am: error: required file './README' not found
Makefile.am: error: required file './ChangeLog' not found
Makefile.am: installing './COPYING' using GNU General Public License v3 file
Makefile.am: Consider adding the COPYING file to the version control system
Makefile.am: for your code, to avoid questions about which license your project uses
autoreconf: automake failed with exit status: 1 解决方法
list="INSTALL NEWS README AUTHORS ChangeLog COPYING"
touch $list 重新生成之后 ./configure d. make && install make install 备注:或者使用autoscan 帮助生成部分代码,也是一个不错的选择
3. 一张参考图
4. 参考资料
https://github.com/rongfengliang/autoconf-demo
https://www.gnu.org/software/autoconf/autoconf.html
https://github.com/rongfengliang/autoconf-project
 
 
 
 

最新文章

  1. git查看本地和创建分支、上传分支、提交代码到分支、删除分支等,git分支、git查看本地和创建分支以及上传分支到服务器
  2. 【Linux学习】Linux下用户组、文件权限详解
  3. rabbitmq 学习足迹
  4. UITableViewCell和UITableView的学习
  5. CSS3 border-image详解、应用
  6. li下沉 margin-top越界 浮动带来的影响
  7. 通过计算机名访问linux
  8. python使用简单http协议来传送文件
  9. CentOS 安装 gcc
  10. JVM内幕:Java虚拟机详解
  11. COOKIE之安全设置漫谈
  12. 自动化测试实施的几个idea
  13. yii2 AR需要注意的地方
  14. 容器与Docker简介(一)——微软微服务电子书翻译系列
  15. ribbon 详解
  16. TCP TIME WAIT
  17. Linux 桌面玩家指南:09. X Window 的奥秘
  18. Redis部署说明
  19. nginx补丁格式说明(CVE-2016-4450为例)
  20. Android常用布局属性解析 -- Layout_weight

热门文章

  1. hadoop2.6.0的eclipse插件安装
  2. spring mvc: log4j插件 log日志的输出
  3. 设置ListBox的Item的样式
  4. 转mysql横向扩展和纵向扩展
  5. 剑指offer算法总结
  6. MySQL Cluster --01
  7. LeetCode OJ:Reverse Nodes in k-Group(K个K个的分割节点)
  8. 《Effective C++》第4章 设计与声明(1)-读书笔记
  9. Golang的简明安装指南
  10. 在ROS Kinetic和Gazebo 8中使用智能汽车仿真演示