[Top][All Lists]

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

install dependencies are ignored

From: Philip Graham Willoughby
Subject: install dependencies are ignored
Date: Wed, 7 May 2003 12:28:14 +0100

Here's the relevent fragment of my
libaptttest_la_SOURCES=aptt/test/test.c @LTLIBINTL@

When I run make install, is always installed first.  This
never works, because it depends on having been installed
previously.  I can fix it for my case by changing:

install-exec-am: install-libLTLIBRARIES install-libexecPROGRAMS \


install-exec-am: install-pkglibLTLIBRARIES install-libLTLIBRARIES \

but this probably doesn't work for everyone (on the other hand, I would have
thought you always wanted all PROGRAMS targets after all (LT)?LIBRARIES
targets anyway).

As far as I can see, the best way to avoid this in all situations is to
generate dependency rules for make from the LIBADD (and of course, LDADD)
information, something like:

$libdir/ $pkglibdir/
        -- install rule --

Of course, the rule for $pkglibdir/ would need a similar
dependency on whatever it is that @LIBLTDL@ expands to - this would surely
be slightly tricky because automake never sees the expanded value because
it's not known until configure time.


Philip Willoughby 

reply via email to

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