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