Date: Wed, 20 Sep 2017 09:28:40 +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: r50889 - head/share/mk Message-ID: <201709200928.v8K9Se0G057122@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: wosch Date: Wed Sep 20 09:28:40 2017 New Revision: 50889 URL: https://svnweb.freebsd.org/changeset/doc/50889 Log: get the number of max_jobs from the command line args as well, e..g: $ make -j16 p-all Modified: head/share/mk/doc.project.mk Modified: head/share/mk/doc.project.mk ============================================================================== --- head/share/mk/doc.project.mk Wed Sep 20 01:57:55 2017 (r50888) +++ head/share/mk/doc.project.mk Wed Sep 20 09:28:40 2017 (r50889) @@ -106,9 +106,9 @@ DOC_LOCAL_MK= ${DOC_PREFIX}/${LANGCODE}/share/mk/doc.l .include "doc.subdir.mk" # parallel build for target "all" and "clean" -NCPU?= 8 +NCPU?= ${.MAKE.JOBS} p-all p-clean: 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} /bin/sh -c + tr '\n' '\0' | xargs -0 -n1 -P${NCPU:S/^$$/8/} /bin/sh -c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709200928.v8K9Se0G057122>