On Wed, Jul 04, 2007, Russ Allbery wrote: > +ifneq (,$(findstring parallel=,$(DEB_BUILD_OPTIONS))) > +NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) > +MAKEFLAGS += -j$(NUMJOBS) > +endif
Since this fails for DEB_BUILD_OPTIONS="x=1,parallel=2", please change the ifneq to use the same macro as in the jobs computation. As another minor nitpick, I think ":=" would be nicer for NUMJOBS. ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) NUMJOBS := $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) MAKEFLAGS += -j$(NUMJOBS) endif -- Loïc Minier