This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: automake/376: Controlling the order of installation
- From: Alexandre Duret-Lutz <duret_g at lrde dot epita dot fr>
- To: Philip Willoughby <pgw99 at doc dot ic dot ac dot uk>
- Cc: automake at gnu dot org, automake-gnats at sources dot redhat dot com
- Date: Tue, 26 Nov 2002 21:57:02 +0100
- Subject: Re: automake/376: Controlling the order of installation
- References: <Pine.LNX.4.50.0211261045060.25256-100000@pub.doc.ic.ac.uk>
>>> "Philip" == Philip Willoughby <pgw99@doc.ic.ac.uk> writes:
Philip> I have:
Philip> lib_LTLIBRARIES=libaptttest.la
Philip> libaptttest_la_SOURCES=aptt/test/test.c
Philip> libaptttest_la_LIBADD=libapttlog.la @LTLIBINTL@
Philip> pkglib_LTLIBRARIES=libapttlog.la
Philip> libapttlog_la_SOURCES=aptt/log/log.c
Philip> libapttlog_la_LIBADD=@LIBLTDL@
Philip> in a Makefile.am. Unfortunately, automake does not recognise that
Philip> libapttlog.la must be installed prior to the installation of
Philip> libaptttest.la.
Philip> Is there a way to hint to automake that the order is
Philip> important without moving to recursive make?
Maybe you could try using the same dir-prefix for both libraries.
Something like
nobase_lib_LTLIBRARIES = yourpkg/libapttlog.la libaptttest.la
libaptttest_la_SOURCES = aptt/test/test.c
libaptttest_la_LIBADD = libapttlog.la @LTLIBINTL@
yourpkg_libapttlog_la_SOURCES = aptt/log/log.c
yourpkg_libapttlog_la_LIBADD = @LIBLTDL@
then libraries should be installed in the order they appear in
nobase_lib_LTLIBRARIES.
Philip> Alternatively, does anyone have a patch to
Philip> automagically do the right thing?
Right now this seems hard. I've submitted this as PR/376, so we
don't forget about it eventually. Fortunatelly it's more
frequent that dependent libraries get installed in the same
directory.
--
Alexandre Duret-Lutz