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