automake
[Top][All Lists]
Advanced

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

Re: Installing only updated headers


From: Alex Hornby
Subject: Re: Installing only updated headers
Date: 25 Oct 2001 11:20:56 +0100

On Thu, 2001-10-25 at 10:57, Alexandre Duret-Lutz wrote:
> >>> "Simon" == Simon Perkins <address@hidden> writes:
> 
> [...]
> 
>  Simon> The obvious solution is to use the -C option to install
>  Simon> which will only copy header files that have actually
>  Simon> changed since the last install. How do I get automake to
>  Simon> do this?
> 
> Overwrite INSTALL_HEADER from you Makefile.am?
> 
>  Simon> I notice that the Makefiles generated by automake set
>  Simon> $(INSTALL) to 'install -c', and that this -c option is
>  Simon> ignored by GNU install. What does the -c option do? Is
>  Simon> it supposed to be -C?
> 
> -c == copy the file (i.e. don't move it).
> 


In projects where I want to do this, I add the following to
configure.in:

dnl Set up a non-clobbering install
ORIG_INSTALL=`realname $INSTALL`
AC_SUBST(ORIG_INSTALL)
case $target in
*linux*)
        INSTALL="/usr/bin/install -C"
        ;;
esac

Obviously a proper feature test would be better, but it works for me :) 

Perhaps $target should be something like $build_host if I was going to
cross compile.

Alex.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]