Re: Conditonnal
On Feb 10, 2001, "Tim Van Holder" <[EMAIL PROTECTED]> wrote: > foo: > @if test; then \ > $(MAKE) foo-true; \ > else \ > $(MAKE) foo-false; \ > fi Yep. But then, if foo-true and/or foo-false have dependencies in common with other targets, parallel builds may lose. -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat GCC Developer aoliva@{cygnus.com, redhat.com} CS PhD student at IC-Unicampoliva@{lsd.ic.unicamp.br, gnu.org} Free Software Evangelist*Please* write to mailing lists, not to me
RE: Conditonnal
> > 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.
Re: Conditonnal
On Feb 8, 2001, "Florent. Devin" <[EMAIL PROTECTED]> wrote: > 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. -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat GCC Developer aoliva@{cygnus.com, redhat.com} CS PhD student at IC-Unicampoliva@{lsd.ic.unicamp.br, gnu.org} Free Software Evangelist*Please* write to mailing lists, not to me
Conditonnal
Hi, How can I make a Makefile based on automake to be conditionnal at make time and not at configure time. I have to do this in my Makefile : ifeq "$(shell if [ -f $(DEPEND) ]; then echo EXISTS; fi)" "" all: $(PROG) include $(DEPEND) else all: depend endif So it requires make time checking because it generates differents files depending on what it has been generated before. Please Help. -- Florent DEVIN