> > 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.