Date: Sun, 28 Oct 2018 09:59:06 +0000 (UTC) From: Wolfram Schneider <wosch@FreeBSD.org> To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r52411 - head/share/mk Message-ID: <201810280959.w9S9x6TK047435@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: wosch Date: Sun Oct 28 09:59:06 2018 New Revision: 52411 URL: https://svnweb.freebsd.org/changeset/doc/52411 Log: improve parallel build Modified: head/share/mk/doc.project.mk Modified: head/share/mk/doc.project.mk ============================================================================== --- head/share/mk/doc.project.mk Sat Oct 27 17:04:58 2018 (r52410) +++ head/share/mk/doc.project.mk Sun Oct 28 09:59:06 2018 (r52411) @@ -113,11 +113,17 @@ DOC_LOCAL_MK= ${DOC_PREFIX}/${LANGCODE}/share/mk/doc.l # Subdirectory glue. .include "doc.subdir.mk" +# # parallel build for target "all" and "clean" -NCPU?= ${.MAKE.JOBS} +# +# by default we are using all available CPUs. You can override +# this on the command line with `make -j<number> p-all' or with the +# variable `make NCPU=<number> p-all' +# +NCPU?= ${.MAKE.JOBS:U${:!/sbin/sysctl -n hw.ncpu!}} 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 + tr '\n' '\0' | xargs -0 -n1 -P${NCPU} /bin/sh -c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810280959.w9S9x6TK047435>