Lucas Nussbaum writes:
> On 27/07/07 at 23:35 +0200, Wouter Verhelst wrote:
> > On Fri, Jul 27, 2007 at 04:56:14PM +0200, Matthias Klose wrote:
> > >  - What to do if that option is not present? Should a package be
> > >    allowed to build in parallel anyway, determing the number of
> > >    processes itself, or should it be a sequential build?
> > 
> > I think it should behave as is currently required then; that is to say,
> > make it a sequential build.

Updated the Makefile example to work with whitespace and comma
separated values, without using the shell:

ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
  COMMA = ,
  NUMJOBS := $(patsubst parallel=%,%,$(filter parallel=%,$(subst $(COMMA), 
,$(DEB_BUILD_OPTIONS))))
  MAKEFLAGS = -j $(NUMJOBS)
endif


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to