Flag recursive make targets with .MAKE (has no effect on fmake)
make -n will still exectute such targets make -N will not. Reviewed by: obrien
This commit is contained in:
parent
b66c288337
commit
f0e9b38d90
@ -36,14 +36,14 @@ __<bsd.subdir.mk>__:
|
||||
|
||||
DISTRIBUTION?= base
|
||||
.if !target(distribute)
|
||||
distribute:
|
||||
distribute: .MAKE
|
||||
.for dist in ${DISTRIBUTION}
|
||||
${_+_}cd ${.CURDIR}; \
|
||||
${MAKE} install -DNO_SUBDIR DESTDIR=${DISTDIR}/${dist} SHARED=copies
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
_SUBDIR: .USE
|
||||
_SUBDIR: .USE .MAKE
|
||||
.if defined(SUBDIR) && !empty(SUBDIR) && !defined(NO_SUBDIR)
|
||||
@${_+_}set -e; for entry in ${SUBDIR}; do \
|
||||
if test -d ${.CURDIR}/$${entry}.${MACHINE_ARCH}; then \
|
||||
@ -60,7 +60,7 @@ _SUBDIR: .USE
|
||||
done
|
||||
.endif
|
||||
|
||||
${SUBDIR}: .PHONY
|
||||
${SUBDIR}: .PHONY .MAKE
|
||||
${_+_}@if test -d ${.TARGET}.${MACHINE_ARCH}; then \
|
||||
cd ${.CURDIR}/${.TARGET}.${MACHINE_ARCH}; \
|
||||
else \
|
||||
@ -81,7 +81,7 @@ ${__stage}${__target}:
|
||||
${__stage}${__target}: _SUBDIR
|
||||
.endif
|
||||
.endfor
|
||||
${__target}:
|
||||
${__target}: .MAKE
|
||||
${_+_}set -e; cd ${.CURDIR}; ${MAKE} build${__target}; ${MAKE} install${__target}
|
||||
.endfor
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user