Implement workaround for a parallel doc build
$ make p-all It works for the sub-directories in a given directory. On a standard quad core machine the build time goes down from ca. 20min to 5 minutes. PR: 222322
This commit is contained in:
parent
0b4df7438b
commit
5472c07a33
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=50880
1 changed files with 6 additions and 0 deletions
|
@ -104,3 +104,9 @@ DOC_LOCAL_MK= ${DOC_PREFIX}/${LANGCODE}/share/mk/doc.local.mk
|
|||
|
||||
# Subdirectory glue.
|
||||
.include "doc.subdir.mk"
|
||||
|
||||
# parallel build for target "all"
|
||||
NCPU?= 8
|
||||
p-all:
|
||||
make -V SUBDIR | sed -E 's/[ ]+$$//' | tr " " "\n" | sed -E 's/^/make -C /' | tr '\n' '\0' | xargs -0 -n1 -P${NCPU} /bin/sh -c
|
||||
|
||||
|
|
Loading…
Reference in a new issue