support parallel "po"

$ make p-po
This commit is contained in:
Wolfram Schneider 2017-10-15 09:09:54 +00:00
parent 75e70a1d63
commit d9d9a2b7fa
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=51123

View file

@ -115,7 +115,8 @@ 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-po:
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