1*43473Sbostic# @(#)bsd.subdir.mk 5.8 (Berkeley) 06/22/90 241563Sbostic 340508Sbostic.MAIN: all 440508Sbostic 5*43473SbosticSTRIP?= -s 6*43473Sbostic 7*43473SbosticBINGRP?= bin 8*43473SbosticBINOWN?= bin 9*43473SbosticBINMODE?= 555 10*43473Sbostic 1141557Sbostic_SUBDIRUSE: .USE 1240508Sbostic @for entry in ${SUBDIR}; do \ 1341461Sbostic (if test -d ${.CURDIR}/$${entry}.${MACHINE}; then \ 1441461Sbostic echo "===> $${entry}.${MACHINE}"; \ 1540518Sbostic cd ${.CURDIR}/$${entry}.${MACHINE}; \ 1640508Sbostic else \ 1741461Sbostic echo "===> $$entry"; \ 1840518Sbostic cd ${.CURDIR}/$${entry}; \ 1940508Sbostic fi; \ 2041575Sbostic ${MAKE} ${.TARGET:realinstall=install}) \ 2140508Sbostic done 2240508Sbostic 23*43473Sbostic${SUBDIR}:: 2441461Sbostic @if test -d ${.TARGET}.${MACHINE}; then \ 2541461Sbostic cd ${.CURDIR}/${.TARGET}.${MACHINE}; \ 2641461Sbostic else \ 2741461Sbostic cd ${.CURDIR}/${.TARGET}; \ 2841461Sbostic fi; \ 2941461Sbostic ${MAKE} all 3041461Sbostic 3141461Sbostic.if !target(all) 3241557Sbosticall: _SUBDIRUSE 3341461Sbostic.endif 3441461Sbostic 3541461Sbostic.if !target(clean) 3641557Sbosticclean: _SUBDIRUSE 3741461Sbostic.endif 3841461Sbostic 3941461Sbostic.if !target(cleandir) 4041557Sbosticcleandir: _SUBDIRUSE 4141461Sbostic.endif 4241461Sbostic 4341461Sbostic.if !target(depend) 4441557Sbosticdepend: _SUBDIRUSE 4541461Sbostic.endif 4641461Sbostic 4741575Sbostic.if !target(install) 4841575Sbostic.if !target(beforeinstall) 4941575Sbosticbeforeinstall: 5041575Sbostic.endif 5141575Sbostic.if !target(afterinstall) 5241575Sbosticafterinstall: 5341575Sbostic.endif 5441575Sbosticinstall: afterinstall 5541575Sbosticafterinstall: realinstall 5641575Sbosticrealinstall: beforeinstall _SUBDIRUSE 5741575Sbostic.endif 5841575Sbostic 5941461Sbostic.if !target(lint) 6041557Sbosticlint: _SUBDIRUSE 6141461Sbostic.endif 6241461Sbostic 63*43473Sbostic.if !target(obj) 64*43473Sbosticobj: _SUBDIRUSE 65*43473Sbostic.endif 66*43473Sbostic 6741461Sbostic.if !target(tags) 6841557Sbostictags: _SUBDIRUSE 6941461Sbostic.endif 70