Recursive make and -j
- Today I looked into “recursive” invocations of make; that is, cases in which a Makefile recipe itself invokes make.
- The official documentation is quite good, but since I’m working with a range of different GNU Make versions, I looked at how the behavior has changed over time, from GNU Make 3.81 to 4.3.
- Basically, the issue is that if you have a recipe in your Makefile like this: ser: make -C subdir and then you run make -j4 ser, recent versions of GNU Make will give a warning (jobserver unavailable: using -j1).
Unverified
- Today I looked into “recursive” invocations of make; that is, cases in which a Makefile recipe itself invokes make.
- The official documentation is quite good, but since I’m working with a range of different GNU Make versions, I looked at how the behavior has changed over time, from GNU Make 3.81 to 4.3.
- Basically, the issue is that if you have a recipe in your Makefile like this: ser: make -C subdir and then you run make -j4 ser, recent versions of GNU Make will give a warning (jobserver unavailable: using -j1).
Sources: Github