automake
[Top][All Lists]
Advanced

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

Re: Individual install targets with libtool


From: Ralf Wildenhues
Subject: Re: Individual install targets with libtool
Date: Fri, 16 Sep 2005 17:58:30 +0200
User-agent: Mutt/1.4.1i

Hi Marc,

* Marc Rossi wrote on Fri, Sep 16, 2005 at 04:29:34PM CEST:
> 
> I have a utility library I build with libtool called
> libutil.la.  In its base form it has no external
> dependencies and can be used on any of my machines.  I
> also build, from the same Makefile.am, an "enhanced"
> version of this library that uses the same codebase
> but enables some features that are dependent on an
> external library (I enable these using
> libutil2_la_CXXFLAGS defines).  
> 
> This external library does NOT exist on all machines,
> so a 'make install' on those machines will fail as it
> attempts to build & install ALL targets.

This sounds like my proposed solutions with an Automake
conditional and the logic to find out whether libutil2
should be built in configure.ac, should work just fine.

> With my current setup, I have to hack the Makefile.am
> prior to doing my 'make install'.   With my current
> setup, you can choose which one to build when doing a
> make (such as 'make libutil.la'), but you cannot
> choose which to install, it's all or nothing.

With above, you should be able to just say `make all'
and `make install'.

Cheers,
Ralf





reply via email to

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