makefile - How can I tell what -j option was provided to make -


in racket's build system, have build step invokes program can run several parallel tasks @ once. since invoked make, nice respect -j option make invoked with.

however, far can tell, there's no way value of -j option inside makefile, or environment variable in programs make invokes.

is there way value, or command line make invoked with, or similar have relevant information? ok have work in gnu make.

in make 4.2.1 got makeflags right. is, can have in makefile target

opts:     @echo $(makeflags) 

and making tell value of -j parameter right.

$ make -j10 opts -j10 --jobserver-auth=3,4 

(in make 4.1 still broken). needless say, instead of echo can invoke script doing proper parsing of makeflags


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -