1*41575Sbostic# @(#)bsd.subdir.mk 5.7 (Berkeley) 05/10/90 241563Sbostic 340508Sbostic.MAIN: all 440508Sbostic 541557Sbostic_SUBDIRUSE: .USE 640508Sbostic @for entry in ${SUBDIR}; do \ 741461Sbostic (if test -d ${.CURDIR}/$${entry}.${MACHINE}; then \ 841461Sbostic echo "===> $${entry}.${MACHINE}"; \ 940518Sbostic cd ${.CURDIR}/$${entry}.${MACHINE}; \ 1040508Sbostic else \ 1141461Sbostic echo "===> $$entry"; \ 1240518Sbostic cd ${.CURDIR}/$${entry}; \ 1340508Sbostic fi; \ 14*41575Sbostic ${MAKE} ${.TARGET:realinstall=install}) \ 1540508Sbostic done 1640508Sbostic 1741557Sbostic${SUBDIR}: 1841461Sbostic @if test -d ${.TARGET}.${MACHINE}; then \ 1941461Sbostic cd ${.CURDIR}/${.TARGET}.${MACHINE}; \ 2041461Sbostic else \ 2141461Sbostic cd ${.CURDIR}/${.TARGET}; \ 2241461Sbostic fi; \ 2341461Sbostic ${MAKE} all 2441461Sbostic 2541461Sbostic.if !target(all) 2641557Sbosticall: _SUBDIRUSE 2741461Sbostic.endif 2841461Sbostic 2941461Sbostic.if !target(clean) 3041557Sbosticclean: _SUBDIRUSE 3141461Sbostic.endif 3241461Sbostic 3341461Sbostic.if !target(cleandir) 3441557Sbosticcleandir: _SUBDIRUSE 3541461Sbostic.endif 3641461Sbostic 3741461Sbostic.if !target(depend) 3841557Sbosticdepend: _SUBDIRUSE 3941461Sbostic.endif 4041461Sbostic 41*41575Sbostic.if !target(install) 42*41575Sbostic.if !target(beforeinstall) 43*41575Sbosticbeforeinstall: 44*41575Sbostic.endif 45*41575Sbostic.if !target(afterinstall) 46*41575Sbosticafterinstall: 47*41575Sbostic.endif 48*41575Sbosticinstall: afterinstall 49*41575Sbosticafterinstall: realinstall 50*41575Sbosticrealinstall: beforeinstall _SUBDIRUSE 51*41575Sbostic.endif 52*41575Sbostic 5341461Sbostic.if !target(lint) 5441557Sbosticlint: _SUBDIRUSE 5541461Sbostic.endif 5641461Sbostic 5741461Sbostic.if !target(tags) 5841557Sbostictags: _SUBDIRUSE 5941461Sbostic.endif 60