NetBSD/tools/Makefile
tv b5cd2489b2 Major overhaul of src/tools and host toolchain. Summary of changes:
* Rewrite src/tools Make logic to work like the rest of the tree wrt
  "dependall" and "install".  The old "make build" hack is gone.

* Remove the MKTOOLS logic.  This was linked to the "make build" hack,
  and was only needed because TOOLDIR originally had no writable default.

* Redo the GNU configure/make logic to make it fit reasonably in a
  BSD make wrapper.  Use new ${.ALLTARGETS} variable to scan for
  targets in $(srcdir), and mark them with .MADE: to prevent rebuilding.

* Only build cross tools in src/tools; remove some messy logic in
  src/usr.* and src/gnu/usr.* that would do target filename rewriting
  (improves consistency and readability).

* Add the ability to build cross gdb at tool build time by setting
  MKCROSSGDB (default no) to "yes" in mk.conf.

* Add src/tools/groff and set up paths to work with this cross groff.
2001-11-12 23:16:17 +00:00

38 lines
809 B
Makefile

# $NetBSD: Makefile,v 1.16 2001/11/12 23:16:22 tv Exp $
.include <bsd.own.mk>
# Dependencies in SUBDIR below ordered to maximize parallel ability.
.if !defined(NOSUBDIR)
SUBDIR= mkdep .WAIT \
binstall .WAIT \
crunchgen gencat lint lint2 lorder mtree rpcgen \
texinfo tsort \
toolchain .WAIT \
dbsym mdsetimage \
yacc .WAIT \
groff \
lex .WAIT \
asn1_compile compile_et config lint1 msgc menuc mklocale
.endif
.include <bsd.subdir.mk>
.include <bsd.obj.mk>
# 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
cleantools:
rm -r -f tools.${HOST_OSTYPE}