[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: need to install (but not build or distribute) something to the bin d
Re: need to install (but not build or distribute) something to the bin directory...
Sat, 5 Aug 2006 02:52:31 +0200
Hello Stepan, Ed,
* Stepan Kasal wrote on Fri, Aug 04, 2006 at 04:25:02PM CEST:
> On Wed, Aug 02, 2006 at 07:30:47PM -0600, Ed Hartnett wrote:
> > [...] gcc to produce an extra output file, called libnetcdf.def.
> > So how do I tell automake that there is a file I would like installed,
> > but not specially built nor included in the distribution?
> > I'm sure there is something very easy I am missing here...
> my wild guess is that you need
> bin_DATA = libnetcdf.def
> Or you can use nodist_bin_DATA, if it makes it more readable for you.
> (*_DATA are not distributed by default.)
Neither works, because automake disallows it:
| Makefile.am:1: `bindir' is not a legitimate directory for `DATA'
I think Ed won't get around writing (un)install-exec-local rules
(and adjust CLEANFILES, by the way).
But I have a question myself: does libnetcdf.def get generated by the
compiler, and if, how exactly (please show command line), and if not,
is it written by libtool? Maybe in that case libtool should be smart
enough to install it itself? (I really don't know.)