Linux下make命令详解(附:GNU官方教程)
来源:互联网 发布:中学生编程软件 编辑:程序博客网 时间:2024/06/05 16:42
当我们在使用make命令时,常常会在make后面加上其他单词,比如check,install,installcheck…这些单词都是make的参数,我们称之为“目标(targets)”。
最常见的几个目标:
make all:编译程序、库、文档等(等同于make)
make install:安装已经编译好的程序。复制文件树中到文件到指定的位置
make unistall:卸载已经安装的程序。
make clean:删除由make命令产生的文件
make distclean:删除由./configure产生的文件
make check:测试刚刚编译的软件(某些程序可能不支持)
make installcheck:检查安装的库和程序(某些程序可能不支持)
make dist:重新打包成packname-version.tar.gz
官方教程的原文:
The words check, install, and installcheck, passed as arguments to make, are called targets. makeis a shorthand for make all, all being the default target in the GNU Build System. Here is a list of the most useful targets that the GNU Coding Standards specify.
make all:
Build programs, libraries, documentation, etc. (same as make).
make install
Install what needs to be installed, copying the files from the package’s tree to
system-wide directories.
make install-strip
Same as make install, then strip debugging symbols. Some users like to trade
space for useful bug reports. . .
make uninstall
The opposite of make install: erase the installed files. (This needs to be run
from the same build tree that was installed.)
make clean
Erase from the build tree the files built by make all.
make distclean
Additionally erase anything ./configure created.
make check
Run the test suite, if any.
make installcheck
Check the installed programs or libraries, if supported.
make dist Recreate ‘package-version.tar.gz’ from all the source files.
- Linux下make命令详解(附:GNU官方教程)
- linux下make命令详解
- Linux下make命令详解
- Make 命令教程详解
- Make 命令教程详解
- Linux-Unix环境下的make命令详解(转载)
- Linux Make 命令详解
- Linux Make 命令详解
- Linux Make 命令详解
- Linux Make 命令详解
- Linux Make 命令详解
- Linux make命令详解
- Linux Make 命令详解
- Linux Make 命令详解
- Linux Make 命令详解
- Linux Make 命令详解
- GNU Make 简明教程 (一)
- GNU Make 简明教程 (二)
- 浅析网站运营的塑造稀缺性策略
- 解决asp.net中“从客户端中检测到有潜在危险的Request.Form值”的错误
- IKanalyzer、ansj_seg、jcseg三种中文分词器的实战较量
- 过滤串表达式的语法
- 桶排序 C# 0(1)的辅助空间,o(n)的时间复杂度进行排序,数据量有上万条。
- Linux下make命令详解(附:GNU官方教程)
- Java语言 C#语言 一些区别(1)
- 如何才能提升网站客户回头率
- java实现定时任务
- 单点小说作品库(上)
- javascript获取输入的字符
- Java +EasyUI+SpringMvc实现Excle导入导出(上)
- 浅谈MVC架构—你到底有什么本事
- 网站站内优化要从哪些范围做起