[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how can I use the -C option of 'install' tool
From: |
Peter Johansson |
Subject: |
Re: how can I use the -C option of 'install' tool |
Date: |
Mon, 10 Sep 2012 09:07:32 +1000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.6esrpre) Gecko/20120714 Thunderbird/10.0.6 |
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