From owner-svn-doc-all@freebsd.org Tue Sep 19 10:03:27 2017 Return-Path: Delivered-To: svn-doc-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 658EFE09F99; Tue, 19 Sep 2017 10:03:27 +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 mx1.freebsd.org (Postfix) with ESMTPS id 3296575586; Tue, 19 Sep 2017 10:03:27 +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 v8JA3QST076796; Tue, 19 Sep 2017 10:03:26 GMT (envelope-from wosch@FreeBSD.org) Received: (from wosch@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v8JA3QSW076795; Tue, 19 Sep 2017 10:03:26 GMT (envelope-from wosch@FreeBSD.org) Message-Id: <201709191003.v8JA3QSW076795@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: wosch set sender to wosch@FreeBSD.org using -f From: Wolfram Schneider Date: Tue, 19 Sep 2017 10:03:26 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r50880 - head/share/mk X-SVN-Group: doc-head X-SVN-Commit-Author: wosch X-SVN-Commit-Paths: head/share/mk X-SVN-Commit-Revision: 50880 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.23 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: Tue, 19 Sep 2017 10:03:27 -0000 Author: wosch Date: Tue Sep 19 10:03:26 2017 New Revision: 50880 URL: https://svnweb.freebsd.org/changeset/doc/50880 Log: 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 Modified: head/share/mk/doc.project.mk Modified: head/share/mk/doc.project.mk ============================================================================== --- head/share/mk/doc.project.mk Tue Sep 19 09:57:15 2017 (r50879) +++ head/share/mk/doc.project.mk Tue Sep 19 10:03:26 2017 (r50880) @@ -104,3 +104,9 @@ DOC_LOCAL_MK= ${DOC_PREFIX}/${LANGCODE}/share/mk/doc.l # 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 +