1 1.23 wiz # $NetBSD: Makefile,v 1.23 2001/12/29 15:45:52 wiz Exp $ 2 1.1 tv 3 1.3 tv .include <bsd.own.mk> 4 1.3 tv 5 1.16 tv # Dependencies in SUBDIR below ordered to maximize parallel ability. 6 1.14 tv .if !defined(NOSUBDIR) 7 1.22 tv SUBDIR= mkdep .WAIT compat .WAIT \ 8 1.16 tv binstall .WAIT \ 9 1.16 tv crunchgen gencat lint lint2 lorder mtree rpcgen \ 10 1.20 thorpej texinfo tsort makewhatis \ 11 1.16 tv toolchain .WAIT \ 12 1.16 tv dbsym mdsetimage \ 13 1.16 tv yacc .WAIT \ 14 1.16 tv groff \ 15 1.16 tv lex .WAIT \ 16 1.21 jmc asn1_compile compile_et config lint1 msgc menuc mklocale \ 17 1.21 jmc pwd_mkdb 18 1.22 tv 19 1.22 tv .if ${MKMAINTAINERTOOLS:Uno} != "no" 20 1.22 tv SUBDIR+= m4 .WAIT autoconf 21 1.22 tv .endif 22 1.17 tv .endif 23 1.17 tv 24 1.18 jmc .if ${MKTOOLS:Uyes} == "no" || ${USETOOLS} != "yes" 25 1.17 tv realall install: _warn 26 1.19 jmc .if ${MKTOOLS:Uyes} == "no" 27 1.17 tv _warn: 28 1.17 tv @echo '*** WARNING: "MKTOOLS" is set to "no"; this will prevent building and' 29 1.17 tv @echo '*** updating your host toolchain. This should be used only as a' 30 1.17 tv @echo '*** temporary workaround for toolchain problems, as it will result' 31 1.23 wiz @echo '*** in version skew and build errors over time!' 32 1.18 jmc .else 33 1.18 jmc _warn: 34 1.18 jmc .endif 35 1.17 tv 36 1.17 tv .for dir in ${SUBDIR:N.WAIT} 37 1.17 tv all-${dir} depend-${dir} dependall-${dir} install-${dir}: 38 1.17 tv @true 39 1.17 tv .endfor 40 1.14 tv .endif 41 1.1 tv 42 1.1 tv .include <bsd.subdir.mk> 43 1.11 tv .include <bsd.obj.mk> 44 1.16 tv 45 1.16 tv # For each .WAIT point, make sure the previous target is installed before 46 1.16 tv # building a dependent target. 47 1.16 tv _dep:= 48 1.16 tv _last:= 49 1.16 tv .for d in ${SUBDIR} 50 1.16 tv _this:= ${d} 51 1.16 tv .if ${_this} == ".WAIT" 52 1.16 tv _dep:= ${_dep} install-${_last} 53 1.16 tv .else 54 1.16 tv _last:= ${d} 55 1.16 tv depend-${d} all-${d} dependall-${d}: ${_dep} 56 1.16 tv .endif 57 1.16 tv .endfor 58 1.12 tv 59 1.12 tv cleantools: 60 1.12 tv rm -r -f tools.${HOST_OSTYPE} 61