[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: automake/376: Controlling the order of installation
From: |
Alexandre Duret-Lutz |
Subject: |
Re: automake/376: Controlling the order of installation |
Date: |
Tue, 26 Nov 2002 21:57:02 +0100 |
User-agent: |
Gnus/5.090008 (Oort Gnus v0.08) Emacs/20.7 (i386-debian-linux-gnu) |
>>> "Philip" == Philip Willoughby <address@hidden> 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> address@hidden@
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