On Feb 28 2023, Satish Balay via Bug reports and discussion for GNU  make wrote:
>> And the reason we use the order '-j8 ${MAKEFLAGS}' is so that we have the 
>> following behavior':

Andreas Schwab (1 March 2023 10:15) wrote:
> You need to write it as MAKEFLAGS="-j1 -${MAKEFLAGS}", so that the short
> options at the start of the old value of MAKEFLAGS become a proper
> options string.

Alternatively, you can

ifeq($(filter -j%,$(MAKEFLAGS)),)
  MAKEFLAGS += -j8
endif

but that will be less portable to other make flavours,

        Eddy.

Reply via email to