bsd.subdir.mk (270187) | bsd.subdir.mk (291777) |
---|---|
1# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91 | 1# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91 |
2# $FreeBSD: stable/10/share/mk/bsd.subdir.mk 270187 2014-08-19 23:33:51Z ian $ | 2# $FreeBSD: stable/10/share/mk/bsd.subdir.mk 291777 2015-12-04 17:56:10Z bdrewery $ |
3# 4# The include file <bsd.subdir.mk> contains the default targets 5# for building subdirectories. 6# 7# For all of the directories listed in the variable SUBDIRS, the 8# specified directory will be visited and the target made. There is 9# also a default target which allows the command "make subdir" where 10# subdir is any directory listed in the variable SUBDIRS. --- 68 unchanged lines hidden (view full) --- 79.if ${__wait} == ${__dir} 80__subdir_targets+= .WAIT 81.else 82__subdir_targets+= ${__target}_subdir_${__dir} 83__deps= 84.for __dep in ${SUBDIR_DEPEND_${__dir}} 85__deps+= ${__target}_subdir_${__dep} 86.endfor | 3# 4# The include file <bsd.subdir.mk> contains the default targets 5# for building subdirectories. 6# 7# For all of the directories listed in the variable SUBDIRS, the 8# specified directory will be visited and the target made. There is 9# also a default target which allows the command "make subdir" where 10# subdir is any directory listed in the variable SUBDIRS. --- 68 unchanged lines hidden (view full) --- 79.if ${__wait} == ${__dir} 80__subdir_targets+= .WAIT 81.else 82__subdir_targets+= ${__target}_subdir_${__dir} 83__deps= 84.for __dep in ${SUBDIR_DEPEND_${__dir}} 85__deps+= ${__target}_subdir_${__dep} 86.endfor |
87${__target}_subdir_${__dir}: .MAKE ${__deps} | 87${__target}_subdir_${__dir}: .PHONY .MAKE ${__deps} |
88.if !defined(NO_SUBDIR) 89 @${_+_}set -e; \ 90 if test -d ${.CURDIR}/${__dir}.${MACHINE_ARCH}; then \ 91 ${ECHODIR} "===> ${DIRPRFX}${__dir}.${MACHINE_ARCH} (${__target:realinstall=install})"; \ 92 edir=${__dir}.${MACHINE_ARCH}; \ 93 cd ${.CURDIR}/$${edir}; \ 94 else \ 95 ${ECHODIR} "===> ${DIRPRFX}${__dir} (${__target:realinstall=install})"; \ --- 41 unchanged lines hidden --- | 88.if !defined(NO_SUBDIR) 89 @${_+_}set -e; \ 90 if test -d ${.CURDIR}/${__dir}.${MACHINE_ARCH}; then \ 91 ${ECHODIR} "===> ${DIRPRFX}${__dir}.${MACHINE_ARCH} (${__target:realinstall=install})"; \ 92 edir=${__dir}.${MACHINE_ARCH}; \ 93 cd ${.CURDIR}/$${edir}; \ 94 else \ 95 ${ECHODIR} "===> ${DIRPRFX}${__dir} (${__target:realinstall=install})"; \ --- 41 unchanged lines hidden --- |