On Thu, 2011-04-14 at 11:35 +0300, Oleksandr Gavenko wrote:
> > You should instead write it as something like:
> >
> >       build: $(dir1) $(dir2)
> >       $(dir1) $(dir2):
> >               $(MAKE) -C $@
> >       .PHONY: build $(dir1) $(dir2)
> >
> So this allow control number of parallel running recursive Makes!

No.  That's what the -j N option is for.

The above, when run without -j, will run the makes in the subdirs one at
a time.

With -j N, it will run N jobs in parallel.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[email protected]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.net
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to