automake
[Top][All Lists]
Advanced

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

Re: ifdef expessions in Makefile.am


From: Joakim Tjernlund
Subject: Re: ifdef expessions in Makefile.am
Date: Thu, 17 Dec 2009 23:29:19 +0100

Peter Johansson <address@hidden> wrote on 17/12/2009 22:52:35:

> From: Peter Johansson <address@hidden>
> To: Joakim Tjernlund <address@hidden>
> Cc: address@hidden
> Date: 17/12/2009 22:52
> Subject: Re: ifdef expessions in Makefile.am
>
> Joakim Tjernlund wrote:
> > I want to do something that is similar to:
> >  SUBDIRS+= dir1/dir2/@TEST@
> > but only if @TEST@ is defined.
> >
> > Any suggestions?
> >
> http://www.gnu.org/software/automake/manual/automake.html#Conditional-Subdirectories

Thanks, but I can't make that work for me
AM_CONDITIONAL seems to be an automake 1.11 feature
and the AC_SUBST variant does not quite fit
Basically I want:
if @TEST@ then
 SUBDIRS+= dir1/dir2/@TEST@
 SUBDIRS+= dir3/dir2/@TEST@
 SUBDIRS+= dir4/@TEST@
....
endif





reply via email to

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