2001-12-07 05:28:53 +03:00
|
|
|
# $NetBSD: Makefile,v 1.21 2001/12/07 02:28:53 jmc Exp $
|
2001-08-14 15:01:55 +04:00
|
|
|
|
2001-09-22 08:15:19 +04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2001-11-13 02:16:17 +03:00
|
|
|
# Dependencies in SUBDIR below ordered to maximize parallel ability.
|
2001-11-02 08:07:22 +03:00
|
|
|
.if !defined(NOSUBDIR)
|
2001-11-13 02:16:17 +03:00
|
|
|
SUBDIR= mkdep .WAIT \
|
|
|
|
binstall .WAIT \
|
|
|
|
crunchgen gencat lint lint2 lorder mtree rpcgen \
|
2001-11-30 02:51:38 +03:00
|
|
|
texinfo tsort makewhatis \
|
2001-11-13 02:16:17 +03:00
|
|
|
toolchain .WAIT \
|
|
|
|
dbsym mdsetimage \
|
|
|
|
yacc .WAIT \
|
|
|
|
groff \
|
|
|
|
lex .WAIT \
|
2001-12-07 05:28:53 +03:00
|
|
|
asn1_compile compile_et config lint1 msgc menuc mklocale \
|
|
|
|
pwd_mkdb
|
2001-11-02 08:07:22 +03:00
|
|
|
.endif
|
2001-08-14 15:01:55 +04:00
|
|
|
|
2001-11-22 03:13:10 +03:00
|
|
|
.if ${MKTOOLS:Uyes} == "no" || ${USETOOLS} != "yes"
|
2001-11-13 19:17:24 +03:00
|
|
|
realall install: _warn
|
2001-11-22 22:09:42 +03:00
|
|
|
.if ${MKTOOLS:Uyes} == "no"
|
2001-11-13 19:17:24 +03:00
|
|
|
_warn:
|
|
|
|
@echo '*** WARNING: "MKTOOLS" is set to "no"; this will prevent building and'
|
|
|
|
@echo '*** updating your host toolchain. This should be used only as a'
|
|
|
|
@echo '*** temporary workaround for toolchain problems, as it will result'
|
|
|
|
@echo '*** in version skew and build errors onver time!'
|
2001-11-22 03:13:10 +03:00
|
|
|
.else
|
|
|
|
_warn:
|
|
|
|
.endif
|
2001-11-13 19:17:24 +03:00
|
|
|
|
|
|
|
.for dir in ${SUBDIR:N.WAIT}
|
|
|
|
all-${dir} depend-${dir} dependall-${dir} install-${dir}:
|
|
|
|
@true
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2001-08-14 15:01:55 +04:00
|
|
|
.include <bsd.subdir.mk>
|
2001-10-31 04:20:09 +03:00
|
|
|
.include <bsd.obj.mk>
|
2001-10-31 20:46:08 +03:00
|
|
|
|
2001-11-13 02:16:17 +03:00
|
|
|
# For each .WAIT point, make sure the previous target is installed before
|
|
|
|
# building a dependent target.
|
|
|
|
_dep:=
|
|
|
|
_last:=
|
|
|
|
.for d in ${SUBDIR}
|
|
|
|
_this:= ${d}
|
|
|
|
.if ${_this} == ".WAIT"
|
|
|
|
_dep:= ${_dep} install-${_last}
|
|
|
|
.else
|
|
|
|
_last:= ${d}
|
|
|
|
depend-${d} all-${d} dependall-${d}: ${_dep}
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
|
2001-10-31 20:46:08 +03:00
|
|
|
cleantools:
|
|
|
|
rm -r -f tools.${HOST_OSTYPE}
|