Is there a way to get the -j option from a make call?

Lets say:

make -j 5

Is there a way, within my Makefileget parameter -j?

My goal is to call sconsfrom Makefilea to keep the ability to use multiple jobs to fix the compilation.

Sort of:

# The Makefile
all:
    scons -j ${GET_J_PARAMETER}

Thank.

Leg: I know that I’d better call sconsdirectly, but some of the developers where I work have been printing makefor almost ten years, and it seems impossible for them to type anything else to create their libraries ..

+3
source share
1 answer

I think that MAKEFLAGScontains this information.

Read more about it here. GNU Make

7.3 , .

+4

All Articles