bsd.subdir.mk (200178) | bsd.subdir.mk (241298) |
---|---|
1# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91 | 1# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91 |
2# $FreeBSD: head/share/mk/bsd.subdir.mk 200178 2009-12-06 08:59:19Z ed $ | 2# $FreeBSD: head/share/mk/bsd.subdir.mk 241298 2012-10-06 20:01:05Z marcel $ |
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. --- 26 unchanged lines hidden (view full) --- 37.for dist in ${DISTRIBUTION} 38 ${_+_}cd ${.CURDIR}; \ 39 ${MAKE} install -DNO_SUBDIR DESTDIR=${DISTDIR}/${dist} SHARED=copies 40.endfor 41.endif 42 43_SUBDIR: .USE 44.if defined(SUBDIR) && !empty(SUBDIR) && !defined(NO_SUBDIR) | 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. --- 26 unchanged lines hidden (view full) --- 37.for dist in ${DISTRIBUTION} 38 ${_+_}cd ${.CURDIR}; \ 39 ${MAKE} install -DNO_SUBDIR DESTDIR=${DISTDIR}/${dist} SHARED=copies 40.endfor 41.endif 42 43_SUBDIR: .USE 44.if defined(SUBDIR) && !empty(SUBDIR) && !defined(NO_SUBDIR) |
45 @${_+_}for entry in ${SUBDIR}; do \ | 45 @${_+_}set -e; for entry in ${SUBDIR}; do \ |
46 if test -d ${.CURDIR}/$${entry}.${MACHINE_ARCH}; then \ 47 ${ECHODIR} "===> ${DIRPRFX}$${entry}.${MACHINE_ARCH} (${.TARGET:realinstall=install})"; \ 48 edir=$${entry}.${MACHINE_ARCH}; \ 49 cd ${.CURDIR}/$${edir}; \ 50 else \ 51 ${ECHODIR} "===> ${DIRPRFX}$$entry (${.TARGET:realinstall=install})"; \ 52 edir=$${entry}; \ 53 cd ${.CURDIR}/$${edir}; \ --- 20 unchanged lines hidden (view full) --- 74.for __target in files includes 75.for __stage in build install 76${__stage}${__target}: 77.if make(${__stage}${__target}) 78${__stage}${__target}: _SUBDIR 79.endif 80.endfor 81${__target}: | 46 if test -d ${.CURDIR}/$${entry}.${MACHINE_ARCH}; then \ 47 ${ECHODIR} "===> ${DIRPRFX}$${entry}.${MACHINE_ARCH} (${.TARGET:realinstall=install})"; \ 48 edir=$${entry}.${MACHINE_ARCH}; \ 49 cd ${.CURDIR}/$${edir}; \ 50 else \ 51 ${ECHODIR} "===> ${DIRPRFX}$$entry (${.TARGET:realinstall=install})"; \ 52 edir=$${entry}; \ 53 cd ${.CURDIR}/$${edir}; \ --- 20 unchanged lines hidden (view full) --- 74.for __target in files includes 75.for __stage in build install 76${__stage}${__target}: 77.if make(${__stage}${__target}) 78${__stage}${__target}: _SUBDIR 79.endif 80.endfor 81${__target}: |
82 ${_+_}cd ${.CURDIR}; ${MAKE} build${__target}; ${MAKE} install${__target} | 82 ${_+_}set -e; cd ${.CURDIR}; ${MAKE} build${__target}; ${MAKE} install${__target} |
83.endfor 84 85.if !target(install) 86.if !target(beforeinstall) 87beforeinstall: 88.endif 89.if !target(afterinstall) 90afterinstall: 91.endif 92install: beforeinstall realinstall afterinstall 93.ORDER: beforeinstall realinstall afterinstall 94.endif | 83.endfor 84 85.if !target(install) 86.if !target(beforeinstall) 87beforeinstall: 88.endif 89.if !target(afterinstall) 90afterinstall: 91.endif 92install: beforeinstall realinstall afterinstall 93.ORDER: beforeinstall realinstall afterinstall 94.endif |