makefile - use of PARALLEL in make -


i have been working on makefiles , trying reduce compilation time. structure of code consists of various sub directories each having own makefile. subdirectories in main directory seem independent whenever run make in of subdirectories, runs fine , shows no error. thus, want run sub-make subdirectories in parallel. possible> , if yes, how?

thank in advance

here crude effective method:

subdirs = /something /something/else /another  .phony: $(subdirs)  all: $(subdirs)  $(subdirs):     @$(make) -s -c $@ 

run make -j.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -