1 # $NetBSD: Makefile,v 1.19 2001/11/22 19:09:42 jmc 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 .if ${MKTOOLS:Uyes} == "no" || ${USETOOLS} != "yes" 20 realall install: _warn 21 .if ${MKTOOLS:Uyes} == "no" 22 _warn: 23 @echo '*** WARNING: "MKTOOLS" is set to "no"; this will prevent building and' 24 @echo '*** updating your host toolchain. This should be used only as a' 25 @echo '*** temporary workaround for toolchain problems, as it will result' 26 @echo '*** in version skew and build errors onver time!' 27 .else 28 _warn: 29 .endif 30 31 .for dir in ${SUBDIR:N.WAIT} 32 all-${dir} depend-${dir} dependall-${dir} install-${dir}: 33 @true 34 .endfor 35 .endif 36 37 .include <bsd.subdir.mk> 38 .include <bsd.obj.mk> 39 40 # For each .WAIT point, make sure the previous target is installed before 41 # building a dependent target. 42 _dep:= 43 _last:= 44 .for d in ${SUBDIR} 45 _this:= ${d} 46 .if ${_this} == ".WAIT" 47 _dep:= ${_dep} install-${_last} 48 .else 49 _last:= ${d} 50 depend-${d} all-${d} dependall-${d}: ${_dep} 51 .endif 52 .endfor 53 54 cleantools: 55 rm -r -f tools.${HOST_OSTYPE} 56