support parallel obj
$ make p-obj PR: 222322
This commit is contained in:
parent
2aec43e2ba
commit
bb54e772f9
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=50896
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ DOC_LOCAL_MK= ${DOC_PREFIX}/${LANGCODE}/share/mk/doc.local.mk
|
|||
|
||||
# parallel build for target "all" and "clean"
|
||||
NCPU?= ${.MAKE.JOBS}
|
||||
p-all p-clean:
|
||||
p-all p-clean p-obj:
|
||||
make -V SUBDIR | sed -E 's/[ ]+$$//' | tr " " "\n" | \
|
||||
sed -E 's/^/make -C /; s/$$/ ${.TARGET:S/^p-//}/' | \
|
||||
tr '\n' '\0' | xargs -0 -n1 -P${NCPU:S/^$$/8/} /bin/sh -c
|
||||
|
|
Loading…
Reference in a new issue