diff options
author | sjg <sjg@FreeBSD.org> | 2013-06-14 16:30:11 +0000 |
---|---|---|
committer | sjg <sjg@FreeBSD.org> | 2013-06-14 16:30:11 +0000 |
commit | a6ae521803aaf366df94a4867f223aab2212a0cf (patch) | |
tree | 317c547b327a7d5350246671986e0bdfaed1193c /Makefile | |
parent | f0e9b38d901f7b5f89a9625f9e3ae79ec4fb14c9 (diff) | |
download | FreeBSD-src-a6ae521803aaf366df94a4867f223aab2212a0cf.zip FreeBSD-src-a6ae521803aaf366df94a4867f223aab2212a0cf.tar.gz |
Flag recursive make targets with .MAKE
so that job token pipe is passed to them.
To avoid surprising anyone, only add .MAKE to ${TGTS} when -n
has not been specified (at least for Makefile).
Reviewed by: obrien
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -209,6 +209,12 @@ cleanworld: # Handle the user-driven targets, using the source relative mk files. # +.if empty(.MAKEFLAGS:M-n) +# skip this for -n to avoid changing previous behavior of +# 'make -n buildworld' etc. +${TGTS}: .MAKE +.endif + ${TGTS}: ${_+_}@cd ${.CURDIR}; ${_MAKE} ${.TARGET} |