1 # $NetBSD: Makefile,v 1.23 2001/12/29 15:45:52 wiz 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 compat .WAIT \ 8 binstall .WAIT \ 9 crunchgen gencat lint lint2 lorder mtree rpcgen \ 10 texinfo tsort makewhatis \ 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 pwd_mkdb 18 19 .if ${MKMAINTAINERTOOLS:Uno} != "no" 20 SUBDIR+= m4 .WAIT autoconf 21 .endif 22 .endif 23 24 .if ${MKTOOLS:Uyes} == "no" || ${USETOOLS} != "yes" 25 realall install: _warn 26 .if ${MKTOOLS:Uyes} == "no" 27 _warn: 28 @echo '*** WARNING: "MKTOOLS" is set to "no"; this will prevent building and' 29 @echo '*** updating your host toolchain. This should be used only as a' 30 @echo '*** temporary workaround for toolchain problems, as it will result' 31 @echo '*** in version skew and build errors over time!' 32 .else 33 _warn: 34 .endif 35 36 .for dir in ${SUBDIR:N.WAIT} 37 all-${dir} depend-${dir} dependall-${dir} install-${dir}: 38 @true 39 .endfor 40 .endif 41 42 .include <bsd.subdir.mk> 43 .include <bsd.obj.mk> 44 45 # For each .WAIT point, make sure the previous target is installed before 46 # building a dependent target. 47 _dep:= 48 _last:= 49 .for d in ${SUBDIR} 50 _this:= ${d} 51 .if ${_this} == ".WAIT" 52 _dep:= ${_dep} install-${_last} 53 .else 54 _last:= ${d} 55 depend-${d} all-${d} dependall-${d}: ${_dep} 56 .endif 57 .endfor 58 59 cleantools: 60 rm -r -f tools.${HOST_OSTYPE} 61