bsd.subdir.mk (50476) | bsd.subdir.mk (53152) |
---|---|
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 50476 1999-08-28 00:22:10Z peter $ | 2# $FreeBSD: head/share/mk/bsd.subdir.mk 53152 1999-11-14 13:54:44Z 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. --- 45 unchanged lines hidden (view full) --- 56.endif 57 58_SUBDIRUSE: .USE 59 @for entry in ${SUBDIR} ${_SUBDIR_EXTRA}; do \ 60 (if ! (test -f ${SUBDIR_CHANGE}/${DIRPRFX}/subdirdrop && \ 61 grep -w $${entry} \ 62 ${SUBDIR_CHANGE}/${DIRPRFX}/subdirdrop \ 63 > /dev/null); then \ | 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. --- 45 unchanged lines hidden (view full) --- 56.endif 57 58_SUBDIRUSE: .USE 59 @for entry in ${SUBDIR} ${_SUBDIR_EXTRA}; do \ 60 (if ! (test -f ${SUBDIR_CHANGE}/${DIRPRFX}/subdirdrop && \ 61 grep -w $${entry} \ 62 ${SUBDIR_CHANGE}/${DIRPRFX}/subdirdrop \ 63 > /dev/null); then \ |
64 if test -d ${.CURDIR}/$${entry}.${MACHINE}; then \ | 64 if test -d ${.CURDIR}/$${entry}.${MACHINE_ARCH}; then \ |
65 ${ECHODIR} \ | 65 ${ECHODIR} \ |
66 "===> ${DIRPRFX}$${entry}.${MACHINE}"; \ 67 edir=$${entry}.${MACHINE}; \ | 66 "===> ${DIRPRFX}$${entry}.${MACHINE_ARCH}"; \ 67 edir=$${entry}.${MACHINE_ARCH}; \ |
68 cd ${.CURDIR}/$${edir}; \ 69 else \ 70 ${ECHODIR} "===> ${DIRPRFX}$$entry"; \ 71 edir=$${entry}; \ 72 cd ${.CURDIR}/$${edir}; \ 73 fi; \ 74 ${MAKE} ${.TARGET:realinstall=install} \ 75 SUBDIR_CHANGE=${SUBDIR_CHANGE} \ 76 DIRPRFX=${DIRPRFX}$$edir/; \ 77 fi; \ 78 ); \ 79 done 80 81${SUBDIR}:: | 68 cd ${.CURDIR}/$${edir}; \ 69 else \ 70 ${ECHODIR} "===> ${DIRPRFX}$$entry"; \ 71 edir=$${entry}; \ 72 cd ${.CURDIR}/$${edir}; \ 73 fi; \ 74 ${MAKE} ${.TARGET:realinstall=install} \ 75 SUBDIR_CHANGE=${SUBDIR_CHANGE} \ 76 DIRPRFX=${DIRPRFX}$$edir/; \ 77 fi; \ 78 ); \ 79 done 80 81${SUBDIR}:: |
82 @if test -d ${.TARGET}.${MACHINE}; then \ 83 cd ${.CURDIR}/${.TARGET}.${MACHINE}; \ | 82 @if test -d ${.TARGET}.${MACHINE_ARCH}; then \ 83 cd ${.CURDIR}/${.TARGET}.${MACHINE_ARCH}; \ |
84 else \ 85 cd ${.CURDIR}/${.TARGET}; \ 86 fi; \ 87 ${MAKE} all 88 89 90.for __target in all checkdpadd clean cleandepend cleandir depend lint \ 91 maninstall obj objlink regress tags --- 27 unchanged lines hidden --- | 84 else \ 85 cd ${.CURDIR}/${.TARGET}; \ 86 fi; \ 87 ${MAKE} all 88 89 90.for __target in all checkdpadd clean cleandepend cleandir depend lint \ 91 maninstall obj objlink regress tags --- 27 unchanged lines hidden --- |