Re: how can I use the -C option of 'install' tool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/09/2012 05:55 PM, Vincent Torri wrote:

Hey

if I'm not mistaken, the configure script check for a BSD 'install' tool, and usually, INSTALL is set to /some/path/install -c

What I would like to do is, during installation, not modify the destination file if the source file is the same.

'install' has the -C option for that, if I'm not mistaken.

So i would like to know if it is possible to do that with autoconf macros. If not, what is the best way of doing what I want ?

Hi Vincent,

I have the following snippet in my Makefile.am, which probably assumes GNU make.



# like the normal install target, but does not update header files
# (and their time stamps) if the content did not change.
install-modified:
    $(MAKE) install $(AM_MAKEFLAGS) INSTALL_HEADER="$(install_sh_DATA) -C"


Cheers,
Peter

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux