Item 10: Using Incremental Installation Techniques

Some people have requested that make install be made smart enough to install only files that are not already installed, or that are newer than installed versions of the same files.

This feature is available by default to users by passing the -C command-line option to install-sh. It can be enabled directly by end users by using the following syntax on the make command line during execution of make install:

$ make install "INSTALL=/path/to/install-sh -C"

If you think your users will benefit from this option, consider adding some information about its proper use to the INSTALL file that ships with your distribution. Don't you just love features you don't have to implement?

Get Autotools now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.