Change number of workers in make

I’m sorry if this is a very noob question, but I’m not very experienced with make files and I couldn’t find anything in google to help me out.

I want to make test but the makefile launches all 8 workers and it ends up eating all my ram. At some point some processes even fail to continue. Is there a way to change the number of workers? Some optional command for make?

Thanks in advance!

Use -j 8?

I tried make test -j 2 and make test -j 8 and got still the same number of workers (8). Is there something I’m missing?

It looks like it is hard-coded:

You can edit that file and set n = 4 or some such.