[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: question about parallel optimzation
From: |
Paul Smith |
Subject: |
Re: question about parallel optimzation |
Date: |
Thu, 14 Apr 2011 09:45:22 -0400 |
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 <address@hidden> 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