This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libfoo.la is already going to be installed in `lib'


>>> "Harlan" == Harlan Stenn <Harlan.Stenn@pfcs.com> writes:

 Harlan> I hope I didn't ask about this one already.
 Harlan> I have a Makefile.am that uses conditionals:

 Harlan> foo/Makefile.am:
 Harlan> if COND1
 Harlan> libfoo = libfoo.la
 Harlan> endif

 Harlan> if COND2
 Harlan> libfoo = libfoo.la
 Harlan> endif

 Harlan> ...
 Harlan> lib_LTLIBRARIES = $(libfoo)

 Harlan> and when I run automake-1.6.3 on it I get:

 Harlan> automake: foo/Makefile.am: `libfoo.la' is already going
 Harlan> to be installed in `lib'

 Harlan> twice.

Could you fill a PR for this?

 Harlan> So how do I get automake to shut up?

I guess a ugly workaround is to define COND3 as "COND1 or COND2"
and use that...
-- 
Alexandre Duret-Lutz




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]