automake
[Top][All Lists]
Advanced

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

Re: Conditional target


From: Ralf Wildenhues
Subject: Re: Conditional target
Date: Thu, 27 Jan 2011 19:40:51 +0100
User-agent: Mutt/1.5.20 (2010-08-04)

Hello Sergio,

* Sergio Belkin wrote on Thu, Jan 27, 2011 at 01:15:45PM CET:
> 2011/1/27 Ralf Wildenhues <address@hidden>:
> > * Sergio Belkin wrote on Thu, Jan 27, 2011 at 04:40:10AM CET:
> >> tests = $(EXTRA_PROGRAMS)
> >
> >> if forcestatic
> >> tests: LIBS += $(STATIC_RESOLV)
> >> end if
> >>
> >> The problem is that automake it complains that .
> >>
> >> tests was already defined in condition forcestatic, which is included
> >> in condition TRUE ...
> >> Makefile.am:150: ... `tests' previously defined here
[...]
> >  variable = foo
> >  if COND
> >  variable += bar
> >  endif
> 
> Thanks but i if I do that the static library is not appended at the
> end, and so it fails....

Please show a small reproducible example that fails for you.
Maybe you did not set STATIC_RESOLV in this Makefile.am or did
not call AC_SUBST([STATIC_RESOLV]) in configure.ac?

Cheers,
Ralf



reply via email to

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