diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2015-10-29 00:41:03 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2015-10-29 00:41:03 +0000 |
commit | 394a144c005690c0352c114780339ce45e865072 (patch) | |
tree | a6b102e2d2ff582eae53c2d4ce7996eb20cba6b5 /share/mk | |
parent | 48944f6b39304239e82aae22a3617b68b502cf8a (diff) | |
download | FreeBSD-src-394a144c005690c0352c114780339ce45e865072.zip FreeBSD-src-394a144c005690c0352c114780339ce45e865072.tar.gz |
Fix regression from using .USEBEFORE in _SUBDIR in r289705.
Using .USEBEFORE had the unintended side-effect of changing the directory for
the real target ran in the current directory. For example this meant that
the 'make clean' would run in one of the SUBDIR.
Sponsored by: EMC / Isilon Storage Division
Pointyhat to: bdrewery
Diffstat (limited to 'share/mk')
-rw-r--r-- | share/mk/bsd.subdir.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/mk/bsd.subdir.mk b/share/mk/bsd.subdir.mk index 0a22fbe..f9b9e97 100644 --- a/share/mk/bsd.subdir.mk +++ b/share/mk/bsd.subdir.mk @@ -83,7 +83,7 @@ _SUBDIR_SH= \ _SUBDIR: .USEBEFORE .if defined(SUBDIR) && !empty(SUBDIR) && !defined(NO_SUBDIR) @${_+_}target=${.TARGET:S,realinstall,install,}; \ - for dir in ${SUBDIR:N.WAIT}; do ${_SUBDIR_SH}; done + for dir in ${SUBDIR:N.WAIT}; do ( ${_SUBDIR_SH} ); done .endif ${SUBDIR:N.WAIT}: .PHONY .MAKE |