您通常会调用以下命令来构建 ./configure
d 产品:
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/