From owner-svn-doc-all@freebsd.org Sun Oct 28 09:59:07 2018 Return-Path: Delivered-To: svn-doc-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 18F5410EEE94; Sun, 28 Oct 2018 09:59:07 +0000 (UTC) (envelope-from wosch@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BF2357999D; Sun, 28 Oct 2018 09:59:06 +0000 (UTC) (envelope-from wosch@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9F3051DD03; Sun, 28 Oct 2018 09:59:06 +0000 (UTC) (envelope-from wosch@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w9S9x6Ir047436; Sun, 28 Oct 2018 09:59:06 GMT (envelope-from wosch@FreeBSD.org) Received: (from wosch@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w9S9x6TK047435; Sun, 28 Oct 2018 09:59:06 GMT (envelope-from wosch@FreeBSD.org) Message-Id: <201810280959.w9S9x6TK047435@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: wosch set sender to wosch@FreeBSD.org using -f From: Wolfram Schneider Date: Sun, 28 Oct 2018 09:59:06 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r52411 - head/share/mk X-SVN-Group: doc-head X-SVN-Commit-Author: wosch X-SVN-Commit-Paths: head/share/mk X-SVN-Commit-Revision: 52411 X-SVN-Commit-Repository: doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Oct 2018 09:59:07 -0000 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 p-all' or with the +# variable `make NCPU= 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