How does 'make install' work?
by fabulousUnicorn from LinuxQuestions.org on (#5S4HY)
I have a number of rather odd questions about the 'make install' command.
1) What utility does it use to install the files to their final location on the system? Does it use 'cp', 'mv, 'install' or something else?
2) What happens if it is installing a file to the system, and a that file already exists on the system?
3) What if the file already exists on the system, and that file is currently being read or written to by another program?
Thank you for any replies. I am writing a set of python scripts to help manage my packages on an LFS installation I am doing. I want a deeper understanding of the 'make install' tool to help guide my design decisions for these scripts. This is my first question on this forum, so if I have done anything incorrectly, let me know.
1) What utility does it use to install the files to their final location on the system? Does it use 'cp', 'mv, 'install' or something else?
2) What happens if it is installing a file to the system, and a that file already exists on the system?
3) What if the file already exists on the system, and that file is currently being read or written to by another program?
Thank you for any replies. I am writing a set of python scripts to help manage my packages on an LFS installation I am doing. I want a deeper understanding of the 'make install' tool to help guide my design decisions for these scripts. This is my first question on this forum, so if I have done anything incorrectly, let me know.