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
Post a Comment