Peter Johansson <[email protected]> wrote on 17/12/2009 22:52:35:

> From: Peter Johansson <[email protected]>
> To: Joakim Tjernlund <[email protected]>
> Cc: [email protected]
> 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