Hello Tom,

* Tom Browder wrote on Sat, Oct 04, 2008 at 02:29:02AM CEST:
> In my Makefile.am I would like to do something like this:
> 
> if ENABLE_PDF
> < 1. lines of normal Make syntax>
> else
> < 2. lines of normal Make syntax>
> endif
> 
> When I try it, all the lines appear in the final Makefile, but the
> false branch is commented out.
> 
> Is there any way to output the true branch and not the false branch?

Well, if ENABLE_PDF is false, the other branch will be commented out.
You can also use
  if !ENABLE_PDF
  this is used if ENABLE_PDF is not true
  endif

Does that answer your question?

Cheers,
Ralf


Reply via email to