automake
[Top][All Lists]
Advanced

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

RE: Conditonnal


From: Tim Van Holder
Subject: RE: Conditonnal
Date: Sat, 10 Feb 2001 22:09:28 +0100

> > How can I make a Makefile based on automake to be conditionnal
> > at make time and not at configure time.
> Basically, you can't.  This just can't be done with portable Makefile
> rules, in general.

Maybe you can have something like:

foo:
        @if test; then \
          $(MAKE) foo-true; \
        else \
          $(MAKE) foo-false; \
        fi

I'm pretty sure this is portable - but feel free to correct me if I'm wrong.
Not sure how much of this will get past automake though; that may depend on
which targets you want to conditionalize.




reply via email to

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