1 # $NetBSD: Makefile,v 1.16 2001/11/12 23:16:22 tv Exp $ 2 3 .include <bsd.own.mk> 4 5 # Dependencies in SUBDIR below ordered to maximize parallel ability. 6 .if !defined(NOSUBDIR) 7 SUBDIR= mkdep .WAIT \ 8 binstall .WAIT \ 9 crunchgen gencat lint lint2 lorder mtree rpcgen \ 10 texinfo tsort \ 11 toolchain .WAIT \ 12 dbsym mdsetimage \ 13 yacc .WAIT \ 14 groff \ 15 lex .WAIT \ 16 asn1_compile compile_et config lint1 msgc menuc mklocale 17 .endif 18 19 .include <bsd.subdir.mk> 20 .include <bsd.obj.mk> 21 22 # For each .WAIT point, make sure the previous target is installed before 23 # building a dependent target. 24 _dep:= 25 _last:= 26 .for d in ${SUBDIR} 27 _this:= ${d} 28 .if ${_this} == ".WAIT" 29 _dep:= ${_dep} install-${_last} 30 .else 31 _last:= ${d} 32 depend-${d} all-${d} dependall-${d}: ${_dep} 33 .endif 34 .endfor 35 36 cleantools: 37 rm -r -f tools.${HOST_OSTYPE} 38