[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do i get make install to only copy target if it was rebuilt
From: |
Thomas Dickey |
Subject: |
Re: How do i get make install to only copy target if it was rebuilt |
Date: |
Fri, 6 Jul 2007 14:51:32 -0400 (EDT) |
On Fri, 6 Jul 2007, Jeff Safier wrote:
Make install seems to copy the target whether its been rebuilt or not
and every time the file is copied it puts a new timestamp on the file.
that's another of those features which the automake maintainer doesn't
agree with.
It's possible to make your install-target depend on the file
that you want to install, but doing that for several files can be tedious.
I do this in regular makefiles, for instance
$(INSTALLDIR)/foo: $(SRCDIR)/foo
$(INSTALL) $(SRCDIR)/foo $(INSTALLDIR)/foo
...but don't expect to see automake support that (or anything equivalent).
automake is designed to reduce the available choices...
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net