diff options
author | Wolfram Schneider <wosch@FreeBSD.org> | 2017-09-19 17:40:05 +0000 |
---|---|---|
committer | Wolfram Schneider <wosch@FreeBSD.org> | 2017-09-19 17:40:05 +0000 |
commit | 1e39127174188aff06336fa666291db07bf71080 (patch) | |
tree | f94c8083e33f2c0120e1ba0b7c235ae3bd6717f5 /share/mk/doc.project.mk | |
parent | 83637d562031b7154ab864b78c385ea0931bb549 (diff) | |
download | doc-1e39127174188aff06336fa666291db07bf71080.tar.gz doc-1e39127174188aff06336fa666291db07bf71080.zip |
support parallel clean
$ make p-clean
PR: 222322
Notes
Notes:
svn path=/head/; revision=50887
Diffstat (limited to 'share/mk/doc.project.mk')
-rw-r--r-- | share/mk/doc.project.mk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/share/mk/doc.project.mk b/share/mk/doc.project.mk index 3d293f5a06..dbc15c95bc 100644 --- a/share/mk/doc.project.mk +++ b/share/mk/doc.project.mk @@ -105,8 +105,10 @@ DOC_LOCAL_MK= ${DOC_PREFIX}/${LANGCODE}/share/mk/doc.local.mk # 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 |