1
votes

I am using autotools to build some packages that I want the headers to be installed only if they are changed.

I see that install.sh has a flag -C for installing only if different, but how do i set that flag in autotools?

In my Makefile.am I am providing nobase_libhello_include_HEADERS = file1.h file2.h if that helps.

1

1 Answers

5
votes

You override the install command when calling configure:

./configure INSTALL="/usr/bin/install -C"