Re: Re: Autodetect processing units with -j
Paul Smith <[email protected]> Fri, 27 Jun 2025 13:04:07 -0400
| Newsgroups | gmane.comp.gnu.make.bugs |
|---|---|
| Organization | GNU's Not UNIX! |
| Message-ID | <[email protected]> |
On Fri, 2025-06-27 at 18:41 +0200, wrotycz wrote: > > The other is that it's difficult to set a generic value for "-j" > > (say in a MAKEFLAGS environment variable, or even in the makefile > > itself) that works across a variety of systems with different CPU > > counts. > > What is MAKEFLAGS? As far as I understand it is command line in form > of environmental variable; it that correct? The manual: https://www.gnu.org/software/make/manual/html_node/ has an index: https://www.gnu.org/software/make/manual/html_node/Name-Index.html which points to the docs: https://www.gnu.org/software/make/manual/html_node/Options_002fRecursion.html See the last 5 paragraphs, starting with: > The MAKEFLAGS variable can also be useful if you want to have certain > options, such as â-kâ (see Summary of Options), set each time you run > make.