Home » Questions » Computers [ Ask a new question ]

Is it usually necessary to do make and then make install?

Is it usually necessary to do make and then make install?

This is something that has always bugged me. It seems like I always see build instructions for building and then installing something saying to do this:

Asked by: Guest | Views: 232
Total answers/comments: 1
Guest [Entry]

"Technically, there is no reason why not - this really is based on how the makefile was set up. It is all designed around dependencies. If the 'install' target is made dependent on the rest of the product, then it would implicitly build the product as you are thinking.

The reason they are separated out is that you are usually going to do a 'make' as the unprivileged developer, and do the 'make install' with elevated privs. Usually you don't want to mix those actions."