[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 4.4.1 breaks recursive invocation with --print-directory [when addin
From: |
Edward Welbourne |
Subject: |
Re: 4.4.1 breaks recursive invocation with --print-directory [when adding to MAKEFLAGS] |
Date: |
Wed, 1 Mar 2023 09:49:35 +0000 |
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.