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