Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/Makefile,v retrieving revision 1.259 retrieving revision 1.260 diff -u -p -r1.259 -r1.260 --- src/Makefile 2008/10/16 09:43:12 1.259 +++ src/Makefile 2008/10/22 17:37:16 1.260 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.259 2008/10/16 09:43:12 pooka Exp $ +# $NetBSD: Makefile,v 1.260 2008/10/22 17:37:16 apb Exp $ # # This is the top-level makefile for building NetBSD. For an outline of @@ -74,8 +74,9 @@ # # Targets invoked by `make build,' in order: # cleandir: cleans the tree. -# obj: creates object directories. +# do-tools-obj: creates object directories for the host toolchain. # do-tools: builds host toolchain. +# obj: creates object directories. # do-distrib-dirs: creates the distribution directories. # includes: installs include files. # do-tools-compat: builds the "libnbcompat" library; needed for some @@ -196,12 +197,15 @@ BUILDTARGETS+= check-tools .if ${MKUPDATE} == "no" && !defined(NOCLEANDIR) BUILDTARGETS+= cleandir .endif +.if ${USETOOLS} == "yes" .if ${MKOBJDIRS} != "no" -BUILDTARGETS+= obj +BUILDTARGETS+= do-tools-obj .endif -.if ${USETOOLS} == "yes" BUILDTARGETS+= do-tools .endif +.if ${MKOBJDIRS} != "no" +BUILDTARGETS+= obj +.endif .if !defined(NODISTRIBDIRS) BUILDTARGETS+= do-distrib-dirs .endif @@ -383,6 +387,9 @@ do-${dir:S/\//-/g}: .PHONY .MAKE .endfor .endfor +do-tools-obj: .PHONY .MAKE + ${MAKEDIRTARGET} tools obj + do-libgcc: .PHONY .MAKE .if defined(HAVE_GCC) .if ${MKGCC} != "no"