filtering job options from MAKEFLAGS, manually

2019-01-23 Thread Laszlo Ersek
Hi! I've got a peculiar problem. There is an outer makefile and an inner makefile. The inner makefile comes from a project (a git submodule) that is maintained separately from the outer makefile (the git superproject). The outer makefile is "make -j"-clean. The inner makefile isn't. In the outer

Re: filtering job options from MAKEFLAGS, manually

2019-01-23 Thread Paul Smith
On Wed, 2019-01-23 at 11:24 +0100, Laszlo Ersek wrote: > Would it be safe / robust to filter out "-j" and "--jobserver-fds=3,4" > as well, manually? (E.g. by sticking a shell script between the outer > and inner make processes.) Why not simply add "-j1" explicitly to the inner-make invocation? Th

Re: filtering job options from MAKEFLAGS, manually

2019-01-23 Thread David Boyce
And don't forget that many clever things can be done with --exec, e.g. "--exec .NOTPARALLEL:". But -j1 seems simpler in this case. On Wed, Jan 23, 2019 at 8:51 AM Paul Smith wrote: > On Wed, 2019-01-23 at 11:24 +0100, Laszlo Ersek wrote: > > Would it be safe / robust to filter out "-j" and "--jo

Re: filtering job options from MAKEFLAGS, manually

2019-01-23 Thread Laszlo Ersek
On 01/23/19 15:45, David Boyce wrote: > And don't forget that many clever things can be done with --exec, e.g. > "--exec .NOTPARALLEL:". But -j1 seems simpler in this case. > > On Wed, Jan 23, 2019 at 8:51 AM Paul Smith wrote: > >> On Wed, 2019-01-23 at 11:24 +0100, Laszlo Ersek wrote: >>> Would

Re: filtering job options from MAKEFLAGS, manually

2019-01-23 Thread David Boyce
Yes, -j1 is the right and obvious solution but I think you have .NOTPARALLEL completely backwards. Here's what the manual says: If .NOTPARALLEL is mentioned as a target, then this invocation of make will be run serially, even if the ā€˜-j’ option is given ... Any prerequisites on this target are ign

Re: filtering job options from MAKEFLAGS, manually

2019-01-23 Thread Laszlo Ersek
On 01/24/19 02:54, David Boyce wrote: > Yes, -j1 is the right and obvious solution but I think you have > .NOTPARALLEL completely backwards. Here's what the manual says: > > If .NOTPARALLEL is mentioned as a target, then this invocation of make will > be run serially, even if the ā€˜-j’ option is gi