help-make
[Top][All Lists]
Advanced

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

Re: invoke target multiple times


From: Paul Smith
Subject: Re: invoke target multiple times
Date: Wed, 11 Jun 2008 18:52:57 -0400

On Wed, 2008-06-11 at 15:13 -0500, Rinehart, Raleigh wrote:
> This would be pretty simple in a shell script or batch file,
> unfortunately I need a pure make solution.
> 
> Any ideas?

Can't you just do:

    .PHONY: world
    world:
            $(MAKE) RELEASE=a CUNIT=b HW=c pdriver
            $(MAKE) RELEASE=d CUNIT=e HW=f pdriver
            $(MAKE) RELEASE=g CUNIT=h HW=i pdriver
            $(MAKE) RELEASE=j CUNIT=k HW=l pdriver

?

That's good enough for a simple situation.  If you wanted to use
parallelism and needed to get every last erg out of it you'll need to do
something fancier of course; in this environment each build of "pdriver"
will be built serially but the act of building a single pdriver will be
done in parallel (if you see what I mean).





reply via email to

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