GNU make’s -j option

I think make -j will respect the dependencies you specify in your Makefile; i.e. if you specify that objA depends on objB and objC, then make won’t start working on objA until objB and objC are complete. Most likely your Makefile isn’t specifying the necessary order of operations strictly enough, and it’s just luck that … Read more

gnu make: list the values of all variables (or “macros”) in a particular run

GNU make provides .VARIABLES which holds all global variables’ names. However, this includes built-in variables(like MAKEFLAGS). If you have to exclude built-in variables, some filtering like the following might be needed. The following makefile prints user-defined variables(CUR-DIR, LOG-DIR) using info: # Place this line at the top of your Makefile VARS_OLD := $(.VARIABLES) # Define … Read more