[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Conditional Makefile Fragment
From: |
Ralf Wildenhues |
Subject: |
Re: Conditional Makefile Fragment |
Date: |
Sun, 5 Oct 2008 12:31:36 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
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