Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Sep 2017 17:40:05 +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: r50887 - head/share/mk
Message-ID:  <201709191740.v8JHe55B065567@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wosch
Date: Tue Sep 19 17:40:05 2017
New Revision: 50887
URL: https://svnweb.freebsd.org/changeset/doc/50887

Log:
  support parallel clean
  
  $ make p-clean
  
  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 17:04:47 2017	(r50886)
+++ head/share/mk/doc.project.mk	Tue Sep 19 17:40:05 2017	(r50887)
@@ -105,8 +105,10 @@ DOC_LOCAL_MK=	${DOC_PREFIX}/${LANGCODE}/share/mk/doc.l
 # Subdirectory glue.
 .include "doc.subdir.mk"
 
-# parallel build for target "all"
+# parallel build for target "all" and "clean"
 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
+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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709191740.v8JHe55B065567>