help-gnu-utils
[Top][All Lists]
Advanced

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

Re: GNUMAKE: rebuild target when any of the dependencies are done


From: Yuri Shtil
Subject: Re: GNUMAKE: rebuild target when any of the dependencies are done
Date: Tue, 25 Jan 2005 10:03:47 -0800

"John Graham-Cumming" <address@hidden> wrote in message
news:address@hidden
> Yuri Shtil wrote:
> > Given an example below, I want to start start $(ALLSCRIPT) when ANY of
the
> > prerequisites One or Two have been updated.
> > Any idea?
> >
> > all: One Two
> >     $(ALLSCRIPT)
> >
> > One: $(ONEDEPS)
> >     $(ONESCRIPT)
> >
> > Two: $(TWODEPS)
> >     $(TWOSCRIPT)
>
> It's not clear from your question exactly what you are expecting to
> happen, but from the looks of your Makefile if either One or Two are
> updated the then all rule will run, i.e. $(ALLSCRIPT) will be run.
>
> I suspect there's something more because of the way in which you
> highlighted the word ANY.  Could you give a concrete example of the
> output you are expecting; perhaps use this example Makefile
>
>      all: One Two ; @echo Building all
>      One: ; @echo Building One
>      Two: ; @echo Building Two
>
> John.
> -- 
> John Graham-Cumming
> address@hidden
>
> Home: http://www.jgc.org/
> Work: http://www.electric-cloud.com/
> POPFile: http://getpopfile.org/

I am sorry, I was not quite clear, I admit.
The idea is to run gmake with -j so that targets ONE and TWO build
concurrently. I want to start the script for all when the FIRST target
finishes, not to wait until both are done.




reply via email to

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