linux - 按照惯例, "make install"会更新它安装的目标吗?

标签 linux makefile

您通常会调用以下命令来构建 ./configured 产品:

make
make install

好的,产品已经在系统中了。然后您更改一些源代码文件并仅调用 make install。问题是,install 目标的常规实现是否需要重新编译可执行文件,还是只需要将旧文件复制到适当的系统路径?

最佳答案

当然,这取决于您喜欢谁的传统。这是 GNU convention :

install
Compile the program and copy the executables, libraries, and so on to the file names where they should reside for actual use.

这似乎是一个明智的约定:让 make install 安装过时的可执行文件大多只会导致困惑。

关于linux - 按照惯例, "make install"会更新它安装的目标吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2522700/

相关文章:

c++ - 使用 eclipse C++ 在 OSX 上创建应用程序包

C++ Linux TickCount

regex - bash 脚本中的 Perl 命令不是解释命令(它实际上是替换它)

java - javac的Makefile编译问题

python - 使用Makefile安装pythonrequirements.txt仅更改requirements.txt

perl - 如何处理 perl 的 ExtUtils 中的外部依赖项 :MakeMaker

linux - 如何要求身份验证和加密访问 Ubuntu 服务器上的文件和数据流端口?

linux - 运行 shell 脚本(它本身在另一台服务器上运行 shell/命令)的 CGI 不返回输出

linux - 从文件名中删除日期、逗号和句点

编译示例 c 文件作为更大的基于 make 的 C 项目的一部分?